File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/firebase-messaging Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ iOS prevents messages containing notification (or 'alert') payloads from being d
21
21
This module provides a requestPermission method which triggers a native permission dialog requesting the user's permission:
22
22
23
23
``` ts
24
- import { firebase } from ' @nativescript/firebase-core' ;
24
+ import { firebase , AuthorizationStatus } from ' @nativescript/firebase-core' ;
25
25
import ' @nativescript/firebase-messaging' ; // only needs to be imported 1x
26
26
27
27
async function requestUserPermission() {
@@ -32,7 +32,7 @@ async function requestUserPermission() {
32
32
alert: true ,
33
33
},
34
34
});
35
- const enabled = authStatus === messaging . AuthorizationStatus .AUTHORIZED || authStatus === messaging . AuthorizationStatus .PROVISIONAL ;
35
+ const enabled = authStatus === AuthorizationStatus .AUTHORIZED || authStatus === AuthorizationStatus .PROVISIONAL ;
36
36
37
37
if (enabled ) {
38
38
console .log (' Authorization status:' , authStatus );
You can’t perform that action at this time.
0 commit comments