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

Commit 37e4326

Browse files
Can't find variable: FIRMessaging ; Zone: <root> ; #1003
1 parent 3d171c6 commit 37e4326

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/messaging/messaging.ios.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,10 @@ function _registerForRemoteNotifications() {
474474

475475
function _messagingConnectWithCompletion() {
476476
return new Promise((resolve, reject) => {
477+
if (typeof (FIRMessaging) === "undefined") {
478+
resolve();
479+
return;
480+
}
477481

478482
FIRMessaging.messaging().connectWithCompletion(error => {
479483
if (error) {

0 commit comments

Comments
 (0)