是否可以通过推送通知知道应用程序是否已经启动/打开?
我想发射活动可以在这里看到:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
if (launchOptions != nil) {
// Launched from push notification
NSDictionary *notification = [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey];
}
}
但是,当应用程序处于后台时,如何从推送通知中检测它是否被打开?