Inovize
Inovize

Reputation: 233

Private API to always keep app open

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

Answers (2)

ilya n.
ilya n.

Reputation: 18816

No need for private APIs if you physically control the device in question: use guided access mode.

Upvotes: 0

Victor Ronin
Victor Ronin

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

2) Use turning on and off LocationManager

Prevent app from being closed

I am not aware of this one.

Upvotes: 1

Related Questions