Search code examples
iosiphoneipadstartup

Make iOS application run at startup


How can I make an app run at startup and not in the background. I need it in foreground for the whole time. Is that possible?

I have:

[UIApplication sharedApplication].idleTimerDisabled = YES;

Thats keeps an app always running in the foreground. But I don't know how make it run at iOS startup in foreground.


Solution

  • The only way is Guided Access

    Guided Access restricts your device to a single app and allows you to control which app features are available.

    So, when you enable Guided Access, your app will run upon startup.

    In order for it to work after a reboot (after a power failure or so), the passcode of the device needs to be disabled.