iOS推送开发笔记
如何判断应用是通过点击通知中心中的通知进入前台的
if ([UIApplication sharedApplication].applicationState == UIApplicationStateInactive) {
}
iOS 8.1.2中远程推送的BUG
当推送为静默推送并且手机不是处于充电状态的话,以下回调方法不会被调用:
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
该BUG在iOS 8.1.3中已经修复。