just want to make sure i’m on the right path.
I’m creating a local notification as an alarm clock. when the user hits button… I want it to DO STUFF.
I’m thinking I have to call my method in
-
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
.. .for when the application is closed -
(void)applicationWillEnterForeground:(UIApplication *)application
… for when the application is in the background… when user hits okay
Is there a better way to do what I’m trying to accomplish… DO STUFF when user hits okay on notification?
thanks in advance
According to the documentation of local and push notifications, you should call
application:didFinishLaunchingWithOptions:in both cases :