1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    144
    Answers
    19
    Vote Rating
    0
    coletek is on a distinguished road

      0  

    Default Unanswered: How to kill a native sencha touch app!

    Unanswered: How to kill a native sencha touch app!


    Is there a way to "Force Stop" (aka kill) a native sencha touch for Android and/or iOS?

    It would be ideal if I could make a button on the app to do this.

    Best Regards,
    What comes around goes around

  2. #2
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Posts
    1,395
    Answers
    148
    Vote Rating
    23
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      0  

    Default


    Nope, that's not possible.
    However, if it was, I would strongly suggest you to avoid that!
    Have you ever seen an iPhone / Android doing the same?

    Regards
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    Owner at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    https://github.com/AndreaCammarata/TUX


  3. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    144
    Answers
    19
    Vote Rating
    0
    coletek is on a distinguished road

      0  

    Default


    Bugger - Most apps do this. They have a "Quit" button in the menu.

    Currently if I get a console error the app freeze's and you need to "Force Stop".

    I get these console errors if I do a Ajax GET call when the phone is not connected to the internet - I've tried to resolve this issue by wrapping the Ajax call within the native API "if (Ext.device.Connection.isOnline()) {" - however that native API function doesn't work for me either - see http://www.sencha.com/forum/showthread.php?255777

    Any thoughts?
    What comes around goes around

  4. #4
    Sencha User
    Join Date
    Aug 2010
    Posts
    303
    Answers
    3
    Vote Rating
    3
    steve1964 is on a distinguished road

      0  

    Default


    Hi, with Sencha Native you cant, but you can with Phonegap, but only for Android::
    Code:
    navigator.app.exitApp();

Thread Participants: 2