tags:

views:

41

answers:

2

Hi there

I was wondering if it was possible to have an "alarm" style app that would run at a certain time? Would the application have to be run and then left open?

I know with multi-tasking on the iPhone 4 a user could open the app and run it in the background. If my original question isn't possible, is it possible to bring an app running in the background back into the foreground after a certain time?

Thank you very much for your help.

+2  A: 

Have a look at the new 4.0 feature called Local Notifications. Local and Push Notification Programming Guide

Jessedc
+1  A: 

You can use EventKit to put certain alarms. It is however not possible to schedule to launch of your app. You can not bring your app forward like you suggest. You could however send a push notification. The link suggested by Jessedc gives a lot of in-depth information about the use of this.

Gidogeek
oh right ok, thanks for that. :) in theory could I have the user OPEN the app and just leave it open?
Thomas Clayson
you can leave it open but you can't bring it to the foreground all of a sudden.
Gidogeek