19 Apr 2013 8:22 AM #1
How to close or restart native app?
did anyone knows how to close or restart native app (native built with Sencha CMD)?
22 Apr 2013 4:32 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
According to iOS design they recommend not having a functionality to close an app, you let the user close it. To restart you can remove data from stores, return the view to the initial view you have and destroy others.Mitchell Simoens @LikelyMitch
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.
22 Apr 2013 6:58 AM #3
Ok about close feature. But about restart:
I need to restart application completely in case if one or more external libraries are not loaded (google maps lib for example). This situation is occur if Internet connection not available during app start.
I already tried to reload application by using window.reload();
All described before is related to native build.
22 Apr 2013 8:08 AM #4
22 Apr 2013 8:57 AM #5
yes of course, same result.
The difficulty is I cannot debug occurred error in the native app because code inside native app is minified (I every time see in logcat output - Uncaught Error in line number 1).
This error occurs just after refresh.
22 Apr 2013 9:07 AM #6
Yes I know that is difficult to debug when is minified
I have not played yet with building a native app using sencha cmd, so far only trough phonegap.
But browsers tests ? is ev. ok ?
You could try also to build the testing&production version and test it on safari with user agent for iOS and try to refresh the page and see what happens.
22 Apr 2013 9:12 AM #7
in browser app is refreshes without any errors. So problem in native app only.
23 Apr 2013 4:00 AM #8
23 Apr 2013 4:57 AM #9
Unfortunately, this is impossible. Native application is signed with a certificate, if you make any changes, the application will not install or run.
23 Apr 2013 5:04 AM #10