Which callback get executed when my app is openned from a push
Hi there i would like to know which app delegate method get called when my app launch from a push notification (When the app was p开发者_C百科reviously in the background ?)
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
Also check this answer.
Implement the didReceiveLocalNotification: method in your AppDelegate.
- (void)application:(UIApplication *)app didReceiveLocalNotification:(UILocalNotification *)notif {
// Handle the notification here
}
Check the documentation of UIApplicationDelegate
精彩评论