开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜