This is a migrated thread and some comments may be shown as answers.

iPhone native App ignoring initialLoad

5 Answers 60 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Robert Everland
Top achievements
Rank 1
Robert Everland asked on 01 May 2012, 09:21 PM
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?

5 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 02 May 2012, 04:30 PM
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!
0
Robert Everland
Top achievements
Rank 1
answered on 03 May 2012, 01:08 PM
I am referring to the Initial View when Kendo framework is loaded http://www.kendoui.com/documentation/mobile/application/overview.aspx 
0
Accepted
Petyo
Telerik team
answered on 04 May 2012, 09:48 AM
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!
0
Robert Everland
Top achievements
Rank 1
answered on 04 May 2012, 07:31 PM
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)?
0
Petyo
Telerik team
answered on 05 May 2012, 05:39 PM
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!
Tags
General Discussions
Asked by
Robert Everland
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Robert Everland
Top achievements
Rank 1
Share this question
or