-
14 Jul 2011 4:48 PM #1
iPad Home Screen App refreshes on every open
iPad Home Screen App refreshes on every open
I'm writing a web app for the iPad using HTML5 and SenchaTouch. The app uses cache manifest to function offline.
Once it has been added in the home screen and opened without Safari, it will refresh itself every time it is opened, even if just navigating to the home screen and back.
The desired behavior is to leave the app, do something else, and then come back to the app with everything untouched.
An example of a similar app that displays the same (undesired) behavior can be found here: http://ignitedmediadesign.com/WebApp/index.html
I've read that using a cache manifest should have solved this problem on iPhone ( http://www.stevesouders.com/blog/201...e-screen-apps/ ), but doesn't seem to have done the trick for either iPhone or iPad.
Is there another way to fix this? Is there some secret to cache manifest files that stops this that I may have missed?
FFR: Solutions may have been posted on Stack Overflow --
http://stackoverflow.com/questions/6...-on-every-open
-
15 Jul 2011 6:41 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,118
- Vote Rating
- 453
This is how iOS handles it.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
22 Aug 2012 6:42 AM #3
solution??
solution??
And what is the solution??
-
22 Aug 2012 6:57 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,118
- Vote Rating
- 453
This is how iOS handles it, there is no control over this.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
22 Aug 2012 7:02 AM #5
Thank's
Thank's
Thank you for response, but when I add another website like (gmail ...) in my home screen, the app is launched in safari and I did not connect every time I open gmail.
Why sencha (from home screen) is not opened in safari with navigation bar?
-
22 Aug 2012 7:03 AM #6
the same pb with sencha touch 2
the same pb with sencha touch 2
the same pb with sencha touch 2
-
22 Aug 2012 7:20 AM #7Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,118
- Vote Rating
- 453
If you are within Safari and add the site to Homescreen and then open from the shortcut now on your Homescreen, it's not opening in Safari at all anymore
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
23 Aug 2012 7:47 AM #8
Solution
Solution
I found a solution for my case, for opening my App in Safari
in applictaion launch function (in app.js file)
My app is opened in Safari, so I did not connect to my account each time I open my app...Code:launch: function() { Ext.fly('appLoadingIndicator').destroy(); // ... // var removeElementByName = function (elName) { var appleEls = document.getElementsByName (elName); var l = appleEls.length; for (i = 0; i < l; i++) { var el = appleEls [0]; Ext.removeNode (el); } }; removeElementByName ('apple-mobile-web-app-capable'); removeElementByName ('apple-touch-fullscreen'); },
-
20 Mar 2013 1:49 PM #9
I'm not sure I follow how that's a solution if you're opening your app in Safari. What if you open your app off the homescreen? Also, where did you get the element ID for the Ext.fly argument?
Since this is an issue iOS homescreen apps, it's causing a reauthentication event for me causing the user to have to log in everytime. In Safari, it doesn't do that.


Reply With Quote