Skip to content

Commit

Permalink
fix(ios): exclude configure if FirApp is already configured by an oth…
Browse files Browse the repository at this point in the history
…er library (#320)
  • Loading branch information
Mathieu Savage committed Dec 3, 2024
1 parent b939abc commit 373ba8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ios/PushPluginFCM.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ - (instancetype)initWithGoogleServicePlist {

- (void)configure:(id <CDVCommandDelegate>)commandDelegate {
NSLog(@"[PushPlugin] Configuring Firebase App for FCM");
[FIRApp configure];
if(![FIRApp defaultApp]) {
[FIRApp configure];
}

self.commandDelegate = commandDelegate;
}
Expand Down

0 comments on commit 373ba8d

Please sign in to comment.