iOS接收远程通知
2016-12-14 11:07
267 查看
App在前台或后台的情况下,点击通知栏里的通知会走如下的代理方法:
iOS 10.0之前:
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary
*)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler{
}
iOS 10.0之后:
- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse
*)response withCompletionHandler:(void(^)())completionHandler{
}
iOS 10.0之前:
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary
*)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler{
}
iOS 10.0之后:
- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse
*)response withCompletionHandler:(void(^)())completionHandler{
}
相关文章推荐
- iOS 判断用户是否允许接收远程通知
- ios本地通知UILocalNotification和远程通知UINotification
- ios学习--ios本地通知和远程通知
- IOS远程推送通知
- iOS—接收到APNs远程推送消息时的处理流程
- iOS接收push通知
- iOS本地通知和远程通知
- iOS通知和远程推送
- ios本地通知和远程通知
- ios本地通知和远程通知
- iOS—如何在客户端和服务端配置APNs远程推送通知的方法
- iOS 远程推送通知
- ios - Push远程通知代码设置 DeviceToken
- IOS 本地通知和远程通知
- ]IOS开发之----远程推送通知
- iOS本地通知和远程通知
- ios本地通知和远程通知(文章最后有个php服务端实现DEMO)
- [转载]IOS开发之----远程推送通知
- iOS - scrollView与headerView的视差滚动实现思路 scrollView 可接收通知啊
- IOS开发之----远程推送通知