|
|
@@ -147,7 +147,7 @@
|
|
|
}];
|
|
|
[application registerForRemoteNotifications];
|
|
|
|
|
|
- // 程序被强杀之后收到通知,点击启动应用
|
|
|
+ // 程序被强杀之后收到通知,点击 通知 启动应用
|
|
|
if (launchOptions && application.applicationState == UIApplicationStateInactive) {
|
|
|
|
|
|
NSDictionary *userInfo = [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey];
|
|
|
@@ -155,7 +155,7 @@
|
|
|
}
|
|
|
|
|
|
|
|
|
- [RASingleton.sharedInstance writeLog:[NSString stringWithFormat:@"isActive: %ld %s",application.applicationState,__func__]];
|
|
|
+// [RASingleton.sharedInstance writeLog:[NSString stringWithFormat:@"isActive: %ld %s launchOptions:%@",application.applicationState,__func__,launchOptions]];
|
|
|
|
|
|
return YES;
|
|
|
}
|
|
|
@@ -225,15 +225,14 @@
|
|
|
// [[NSNotificationCenter defaultCenter] postNotificationName:RANotificationHandleOrder object:nil userInfo:userInfo];
|
|
|
// }
|
|
|
// }
|
|
|
+// [RASingleton.sharedInstance writeLog:[NSString stringWithFormat:@"isActive: %ld %s",[UIApplication sharedApplication].applicationState,__func__]];
|
|
|
+
|
|
|
completionHandler();
|
|
|
}
|
|
|
-/**
|
|
|
- 程序处于非运行状态时,收到通知,点击Icon运行程序会调用此方法
|
|
|
- 程序处于运行状态或后台,收到通知也会调用此方法。
|
|
|
- */
|
|
|
+
|
|
|
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {
|
|
|
|
|
|
- [RASingleton.sharedInstance writeLog:[NSString stringWithFormat:@"isActive: %ld %s",application.applicationState,__func__]];
|
|
|
+// [RASingleton.sharedInstance writeLog:[NSString stringWithFormat:@"isActive: %ld %s",application.applicationState,__func__]];
|
|
|
/**
|
|
|
静默推送alert为空
|
|
|
{
|