Close application when pressing home button (ios), (prevent running in background)

iKnow-IT banner

If you want to close the application when pressing the home button (prevent running in background).

Copy the "info.plist" file from the build/iphone directory into the root directory of your project (where the "tiapp.xml" file is located)

add the following 2 line to the copied file

<key>UIApplicationExitsOnSuspend</key>
<true/>

Delete the folder

build/iphone/build

and rebuild your project