iPhone native App ignoring initialLoad

6 posts, 1 answers
  1. Robert Everland
    Robert Everland avatar
    6 posts
    Member since:
    May 2010

    Posted 01 May 2012 Link to this post

    We have setup our application to be able to use the add home screen option in the iPhone. Once we do that the app stops behaving normally. We tried setting the initialload option when the framework is loaded, but it is completely ignored. We ended up having to do a  window.location.replace to the screen we wanted. What is causing the iPhone to act differently between Safari and running it as a fake native app?
  2. Petyo
    Admin
    Petyo avatar
    2444 posts

    Posted 02 May 2012 Link to this post

    Hi,

    I am not sure I understand the question, as Kendo UI does not provide initialLoad method or event. Can you provide some sample code? 

    Kind regards,
    Petyo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Robert Everland
    Robert Everland avatar
    6 posts
    Member since:
    May 2010

    Posted 03 May 2012 Link to this post

    I am referring to the Initial View when Kendo framework is loaded http://www.kendoui.com/documentation/mobile/application/overview.aspx 
  4. Answer
    Petyo
    Admin
    Petyo avatar
    2444 posts

    Posted 04 May 2012 Link to this post

    Hi,

    I tried the following:

    - Built a sample (see attachment);
    - Opened it in safari/iPhone, #bar view is open;
    - Added it to the home screen; opened the app; #bar view is open;
    - Clicked on the Foo button; #foo view opened;
    - Pressed the home button; app was minimized;
    - Pressed the App icon, app was re-loaded. #bar view is open;

    The behavior seems logical, to me at least. What am I missing. 

    Greetings,
    Petyo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  5. Robert Everland
    Robert Everland avatar
    6 posts
    Member since:
    May 2010

    Posted 04 May 2012 Link to this post

    I see what the issue is, in the documentation is doesn't have a hash tag in front of the view. Once I did that it fixed the issue. Thanks for the example, you may want to update the documentation to clear that up, unless you mention that views should be prefaced with hash tags everywhere and I missed it (if so could you point it out)?
  6. Petyo
    Admin
    Petyo avatar
    2444 posts

    Posted 05 May 2012 Link to this post

    Hi,

    Glad everything works on your side. It is described in this article but it may be a bit unclear, indeed.

    Kind regards,
    Petyo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top