Reputation: 233
Hi I am looking for a way to make sure that my app cannot be completely closed or at least automatically open when the iPhone turns on. I am happy to use any private api's to accomplish this. Is this possible? Although it may affect battery life, for the b2b app i am making it needs to always listen for certain events and we do not want the user closing it out. Thank you for any help in this!
Upvotes: 1
Views: 457
Reputation: 18816
No need for private APIs if you physically control the device in question: use guided access mode.
Upvotes: 0
Reputation: 23268
Couple of things:
Restarting an app
VOIP application automatically start applications after reboot and in couple of other cases. So, it's better to use it.
Continuously running
There are couple of methods.
Most commons are:
1) Play silent audio in the loop:
Look at these
How do I start playing audio when in silent mode & locked in iOS 6?
https://groups.google.com/forum/#!topic/brighton-iphone-creators/CT6HByrUT3c
2) Use turning on and off LocationManager
Prevent app from being closed
I am not aware of this one.
Upvotes: 1