1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    1
    Vote Rating
    0
    steven.mcneese is on a distinguished road

      0  

    Default Unanswered: Sencha App Restarting on iPhone When Launched From Home Screen

    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.

    Thank you,

    Steve

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,620
    Answers
    3452
    Vote Rating
    817
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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 refresh
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1