Turn on iphone from within in app

98 views Asked by At

I am writing an alarm clock app for iphone, and I want it to turn on the phone(from standby mode) approx 1hr before the alarm is supposed to go off.

Then I want the app to be active, so I can stream content live without the user having to put the phone in an active-mode.

Any way for an app to switch out of standby?

3

There are 3 answers

6
Omar Abdelhafith On

Nope that cant be done, once the app went to the background state you lose control on it, and cannot bring it back

0
Guntis Treulands On

There might be a way using notifications. Check this SO question for more info:

Alarm Even Application Closed in iPhone

0
Rok Jarc On

Without using private api an application can only present alertview (via local or push notification).

And only when user taps "view" button this application can be activated. You can see that in the link you provided - (second to last screenshot)

True, you can always add sound to this notifications - so alarm app can work (and there are many out there) but it can't send itself in the foreground.