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?
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.
The iPhone Application Programming Guide states 5 seconds for shutdown, but I can't find a reference to start-up times.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With