Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
Issue #795: coldstart flag always set to true if the app has been ope…
Browse files Browse the repository at this point in the history
…ned through an alert, on ios 9.3.1, plugin version 1.6.2 cordova 6.1.0 cordova ios 4.1.1
  • Loading branch information
macdonst committed May 26, 2016
1 parent 7149db9 commit 099162a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ios/AppDelegate+notification.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
}
Expand Down
1 change: 1 addition & 0 deletions src/ios/PushPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ - (void)notificationReceived {
[pluginResult setKeepCallbackAsBool:YES];
[self.commandDelegate sendPluginResult:pluginResult callbackId:self.callbackId];

self.coldstart = NO;
self.notificationMessage = nil;
}
}
Expand Down

0 comments on commit 099162a

Please sign in to comment.