16 Dec 2011 8:05 AM #1
Unanswered: Sencha App Restarting on iPhone When Launched From Home Screen
We have a Sencha Touch appliction being developed primarily for use on iPhone/iPad. If we use the Add To Home Screen feature of Safari to save the icon to the Home Screen and then re-launch the application from this icon versus Safari, we are getting strange behavior. The issue is that if you get interupted from a phone call or pull up the task manager and switch to another application and then back, the Sencha Touch application will restart to the initial entry point. This does not happen if you lauch Safari and open the site URL.
Has anybody figured out how to overcome this? It appears that the session is recreated when the Home Screen lauched sencha site becomes the main process running. So, if you authenticate through the app, then switch to another app (manually or get interrupted with a phone call) and then back, a new session is created and you lose where you are and have to re-authenitcate and start over.
16 Dec 2011 9:18 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
This is how iOS does it. In iOS5, the behavior I see is it seems to maybe timeout... after a certain amount of time it will force a refreshMitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.