Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 0464bbd

Browse files
Merge remote-tracking branch 'origin/master'
2 parents b325436 + 033b6d9 commit 0464bbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/firebase.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function addBackgroundRemoteNotificationHandler(appDelegate) {
5656
if (typeof(FIRMessaging) !== "undefined") {
5757
appDelegate.prototype.applicationDidReceiveRemoteNotificationFetchCompletionHandler = (app, notification, completionHandler) => {
5858
// Pass notification to auth and check if they can handle it (in case phone auth is being used), see https://firebase.google.com/docs/auth/ios/phone-auth
59-
if (FIRAuth.auth().canHandleNotification(notification)) {
59+
if (firebase._configured && FIRAuth.auth().canHandleNotification(notification)) {
6060
completionHandler(UIBackgroundFetchResult.NoData);
6161
return;
6262
}

0 commit comments

Comments
 (0)