diff --git a/src/ios/AppDelegate+notification.m b/src/ios/AppDelegate+notification.m index 41e88a56f..9d556001f 100644 --- a/src/ios/AppDelegate+notification.m +++ b/src/ios/AppDelegate+notification.m @@ -191,6 +191,7 @@ - (void)pushPluginOnApplicationDidBecomeActive:(NSNotification *)notification { pushHandler.coldstart = [self.coldstart boolValue]; pushHandler.notificationMessage = self.launchNotification; self.launchNotification = nil; + self.coldstart = [NSNumber numberWithBool:NO]; [pushHandler performSelectorOnMainThread:@selector(notificationReceived) withObject:pushHandler waitUntilDone:NO]; } } diff --git a/src/ios/PushPlugin.m b/src/ios/PushPlugin.m index 560acd5b5..b8cfeb875 100644 --- a/src/ios/PushPlugin.m +++ b/src/ios/PushPlugin.m @@ -504,6 +504,7 @@ - (void)notificationReceived { [pluginResult setKeepCallbackAsBool:YES]; [self.commandDelegate sendPluginResult:pluginResult callbackId:self.callbackId]; + self.coldstart = NO; self.notificationMessage = nil; } }