Is there an event when the user presses the standby button?
I can disable “auto standby” (autolock) – which I do because my app is some kind of a routing application.
But how about the standby button?
The problem – if the iPhone goes standby the GPS is turned off. So my app thinks it has a GPS problem. This is in fact wrong – it’s only standby which means a different handling should be done as if I do it when GPS problems occure in “running mode” (the users sees the app).
I couldn’t find an event for this situation (neither going standby – nor awaiking from it)
You have to listen to these 2 notifications:
and handle them appropriately:
To disable auto-standby just implement this in your main app delegate: