Skip to content

Commit

Permalink
fix(messaging): null reference when getting current token (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterStaev authored Aug 30, 2024
1 parent 3deb679 commit ff516e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/firebase-messaging-core/index.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export class MessagingCore implements IMessagingCore {
getCurrentToken(): Promise<string> {
return new Promise((resolve, reject) => {
org.nativescript.firebase.messaging.FirebaseMessaging.getToken(
this._native,
this.native,
new org.nativescript.firebase.messaging.FirebaseMessaging.Callback<string>({
onSuccess(result) {
resolve(result);
Expand Down

0 comments on commit ff516e0

Please sign in to comment.