Skip to content

Commit 0c93e10

Browse files
authored
Merge pull request #387 from jtorvald/patch-1
Fix for crash with UnregisterForPushNotifications
2 parents 0b09f64 + 0e41b79 commit 0c93e10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Plugin.FirebasePushNotification/FirebasePushNotificationManager.ios.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ public void DidReceiveRegistrationToken(Messaging messaging, string fcmToken)
565565
}
566566
}
567567

568-
NSUserDefaults.StandardUserDefaults.SetString(fcmToken, FirebaseTokenKey);
568+
NSUserDefaults.StandardUserDefaults.SetString(fcmToken ?? string.Empty, FirebaseTokenKey);
569569
}
570570

571571
public void ClearAllNotifications()

0 commit comments

Comments
 (0)