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
2121This 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' ;
2525import ' @nativescript/firebase-messaging' ; // only needs to be imported 1x
2626
2727async 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 );
You can’t perform that action at this time.
0 commit comments