Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alloted times for startup shutdown of iphone apps

How much time is given to the startup and shutdown of an iphone app (and possibly other important routines). I have had programs killed on my iphone by the OS which was overzealous?

like image 614
John Smith Avatar asked Jan 23 '23 07:01

John Smith


2 Answers

The watchdog timer on the iPhone terminates your application if it has been unresponsive for 20 seconds. Note that Xcode disables the watchdog timer when debugging, so you may need to test on the hardware outside of Xcode to make sure that your application will indeed run. However, if your application is blocking the main thread for anywhere near 20 seconds, there's something seriously wrong in its design.

like image 114
Brad Larson Avatar answered Jan 25 '23 21:01

Brad Larson


The iPhone Application Programming Guide states 5 seconds for shutdown, but I can't find a reference to start-up times.

like image 31
Edd Avatar answered Jan 25 '23 21:01

Edd