-
6 Feb 2013 2:17 AM #1
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
-
6 Feb 2013 5:01 AM #2
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?
RegardsSencha Inc
Andrea Cammarata, Solutions Engineer
CEO at SIMACS
@AndreaCammarata
www.andreacammarata.com
github: https://github.com/AndreaCammarata
-
6 Feb 2013 5:08 AM #3
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
-
6 Feb 2013 5:28 AM #4
Hi, with Sencha Native you cant, but you can with Phonegap, but only for Android::
Code:navigator.app.exitApp();


Reply With Quote