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

Commit

Permalink
🍎🐛 Issue #1497: App crashes after refreshing when using FCM (v2)
Browse files Browse the repository at this point in the history
  • Loading branch information
macdonst committed Jan 4, 2017
1 parent 498bb03 commit ea92e03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ios/PushPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,8 @@ - (void)init:(CDVInvokedUrlCommand*)command;
NSLog(@"Using FCM Notification");
[self setUsesFCM: YES];
dispatch_async(dispatch_get_main_queue(), ^{
[FIRApp configure];
if([FIRApp defaultApp] == nil)
[FIRApp configure];
[self initRegistration];
});
} else {
Expand Down

0 comments on commit ea92e03

Please sign in to comment.