SDK 4.1 - how to reload app after pause
Hi,
I am having a tabGroup with several of windows. When I am finished working with my app and pushes the home-button, the app goes into pause-mode. I want the app to reload app.js when it started again. How can i achieve this?
I just want the app to return to the "start" state. is it possible?
Regards, Joakim
2 Answers
-
With Android, you can use the exitOnClose:true property on the root window. See android root windows in the docs. However, I don't know what the equivalent is for iOS. Hopefully someone will add the solution.
-
Go to your info.plist in the build folder and edit it with a text editor and add this.
<key>UIApplicationExitsOnSuspend</key> <true/>