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

Commit 6479638

Browse files
#178 Running in debug works, running in release on iOS causes crash
1 parent 36e2ae0 commit 6479638

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

firebase.ios.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,8 @@ firebase._registerForRemoteNotifications = function (app) {
269269

270270
if (typeof(FIRMessaging) !== "undefined") {
271271

272-
firebase._addObserver(kFIRInstanceIDTokenRefreshNotification, firebase._onTokenRefreshNotification);
272+
// see https://github.com/EddyVerbruggen/nativescript-plugin-firebase/issues/178 for why we're not using a constant here
273+
firebase._addObserver("com.firebase.iid.notif.refresh-token", firebase._onTokenRefreshNotification);
273274

274275
firebase._addObserver(UIApplicationDidFinishLaunchingNotification, function (appNotification) {
275276
// guarded this with a preference so the popup "this app wants to send notifications"

0 commit comments

Comments
 (0)