Skip to main content
June 6, 2011
Answered

Close App on iPad?

  • June 6, 2011
  • 1 reply
  • 746 views

Did some Googling but couldn't find anything helpful... is there a way to completely close an app when the iPad's home button is pressed?

thanks

This topic has been closed for replies.
Correct answer iBr3nt

Hi,

The best you can do is set a value in the Info.plist to exit application on suspend. Look at the documentation here to see the list of keys you can set to influence the apps behavior: http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html

You would add the following text within your -app.xml <iPhoneAdditions> tag, below the UIDeviceFamily tag:

<key>UIApplicationExitsOnSuspend</key>

<true/>

HTH,

iBrent

1 reply

iBr3nt
iBr3ntCorrect answer
Inspiring
June 6, 2011

Hi,

The best you can do is set a value in the Info.plist to exit application on suspend. Look at the documentation here to see the list of keys you can set to influence the apps behavior: http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html

You would add the following text within your -app.xml <iPhoneAdditions> tag, below the UIDeviceFamily tag:

<key>UIApplicationExitsOnSuspend</key>

<true/>

HTH,

iBrent

June 7, 2011

Thanks much - that seems to mostly work. The only thing is the app still appears in the "multitask" dock if the home button is double-clicked. Is that just how it works?

June 7, 2011

Yes, Because the "multitask" bar is actually the recently used applications

bar. It is not at all necessary that apps in that bar are running.