facebook

How to gracefully exit an APP?

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #322945 Reply

    JohnWord
    Member

    I wish to put a CLOSE button on the app which will close the app and preferably also not leave it running in background (on iOS v4 and above).

    I can make an OnClick Javascript to do a

    close();

    but this does not appear graceful. that is in the Test Center, when pressed, it crashes the entire MobiOne environment.

    suggestions?

    thanks

    #322949 Reply

    support-michael
    Keymaster

    @GA33

    >but this does not appear graceful. that is in the Test Center, when pressed, it crashes the entire MobiOne environment.

    uncool!

    Will investigate and discuss w/ dev team.

    #323097 Reply

    support-michael
    Keymaster

    @GA33

    For clarification are you seeking to close an iOS app or a webapp? I am assuming you are developing an iOS app.

    After more investigation I found that exiting app in iOS is considered bad form. See this apple technote:
    https://developer.apple.com/library/ios/#qa/qa1561/_index.html

    Regarding your use of window.close(), I have replicated a crash scenario and we are investigating now.

    #323166 Reply

    JohnWord
    Member

    yes – I mean in closing an iOS App. However closing a web app is also of interest.
    Interesting, because if you don’t close the app (as Apple suggests), then it stays resident.
    In IOS v4+, you can find it still active if you double click the main hardware button.

    thank you for your reply..

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: How to gracefully exit an APP?

You must be logged in to post in the forum log in