Skip to content

Commit 8b4f102

Browse files
committedSep 21, 2022
chore: update readme
·
5.0.22.4.0-alpha.0
1 parent beeca11 commit 8b4f102

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎packages/firebase-messaging/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ iOS prevents messages containing notification (or 'alert') payloads from being d
2121
This module provides a requestPermission method which triggers a native permission dialog requesting the user's permission:
2222

2323
```ts
24-
import { firebase } from '@nativescript/firebase-core';
24+
import { firebase, AuthorizationStatus } from '@nativescript/firebase-core';
2525
import '@nativescript/firebase-messaging'; // only needs to be imported 1x
2626

2727
async function requestUserPermission() {
@@ -32,7 +32,7 @@ async function requestUserPermission() {
3232
alert: true,
3333
},
3434
});
35-
const enabled = authStatus === messaging.AuthorizationStatus.AUTHORIZED || authStatus === messaging.AuthorizationStatus.PROVISIONAL;
35+
const enabled = authStatus === AuthorizationStatus.AUTHORIZED || authStatus === AuthorizationStatus.PROVISIONAL;
3636

3737
if (enabled) {
3838
console.log('Authorization status:', authStatus);

0 commit comments

Comments
 (0)
Please sign in to comment.