Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
Call registerForRemoteNotifications even if isRegisteredForRemoteNoti…
Browse files Browse the repository at this point in the history
…fications (phonegap#2438)
  • Loading branch information
jcesarmobile authored and macdonst committed Jun 21, 2018
1 parent 6d38ec3 commit 11d7a6c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ios/PushPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -678,9 +678,7 @@ - (void)handleNotificationSettingsWithAuthorizationOptions:(NSNumber *)authoriza

- (void)registerForRemoteNotifications
{
if (![[UIApplication sharedApplication] isRegisteredForRemoteNotifications]) {
[[UIApplication sharedApplication] registerForRemoteNotifications];
}
[[UIApplication sharedApplication] registerForRemoteNotifications];
}

@end
Expand Down

0 comments on commit 11d7a6c

Please sign in to comment.