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

Commit 65b9081

Browse files
Push token is not always a string #587
1 parent 39f5df6 commit 65b9081

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
### Fixes
1010
- [#564](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/issues/564) Firebase Auth + WebPack crashing iOS application (when createUser is triggered) - FIX
11+
- [#587](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/issues/587) Push token is not always a string
1112

1213
### New
1314
- [#590](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/issues/590) Bump Firebase SDK versions

src/firebase.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ function getAppDelegate() {
487487
function prepAppDelegate() {
488488
if (typeof(FIRMessaging) !== "undefined") {
489489
// see https://github.com/EddyVerbruggen/nativescript-plugin-firebase/issues/178 for why we're not using a constant here
490-
firebase._addObserver("com.firebase.iid.notif.refresh-token", firebase._onTokenRefreshNotification);
490+
firebase._addObserver("com.firebase.iid.notif.refresh-token", notification => firebase._onTokenRefreshNotification(notification.object));
491491

492492
firebase._addObserver(UIApplicationDidFinishLaunchingNotification, appNotification => {
493493
// guarded this with a preference so the popup "this app wants to send notifications"

0 commit comments

Comments
 (0)