I am developing an iPhone app where I don’t want/need the multitasking capability and I want my app to initiate every time I open it.
I have set the UIApplicationExitsOnSuspend
property in the info.plist and it does work when I test it on my iPhone 4 and in the simulator (which is also an ”iPhone 4”). The app calls applicationDidEnterBackground
followed by applicationWillTerminate
. However, when testing it on my wifes iPhone 3GS the property seems to be completely ignored and the program gets suspended/resumed. Both phones are running iOS 4.2.1.
Someone has also confirmed this issue in another thread, with no solutions unfortunately: iPhone: how to test if UIApplicationExitsOnSuspend is working?
Is there something I am missing to make this 开发者_StackOverflow社区work? Any other ways to accomplish this?
Thanx in advance
I think that the application is meant for iPhone 4 and not iPhone 3GS
You can upgrade your iPhone to iPhone 4 by paying a little amount.'
And also try running the app on another persons iPhone (4) to make sure that the application works fine
Try using Application does not run in background
key in the info.plist file and make sure it is checked.
Ok, there doesn't seem to be an viable solution to this problem, neither here or in the Apple Developer forum. I just gave up and implemented the multitasking capability to at least get consistent behaviour across the different iPhone models.
精彩评论