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

Commit 257afb2

Browse files
Made it even clearer you need to require the plugin before bootstrapping the app
1 parent b389c32 commit 257afb2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/NON_FIREBASE_MESSAGING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Go to you app's root folder and remove `firebase.nativescript.json`, then run `n
1212
## Demo app
1313
I've tried applying best practices to a [dedicated push-only demo app](/demo-push).
1414

15+
## ⚠️ Important ⚠️
1516
Two important things to keep in mind are:
1617
- `require` (not `import`!) the plugin in [app.js/app.ts](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/e18e546ac1b96fea1d7ce71c5ae3453a8955cc17/demo-push/app/app.ts#L5) (or `main.ts`, or any other file that bootstraps your app).
1718
- Show [your own consent screen](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/e18e546ac1b96fea1d7ce71c5ae3453a8955cc17/demo-push/app/push-view-model.ts#L33-L43) before iOS requests permission, because **a)** the default popup (that'll also still be shown) isn't very friendly/configurable, and **b)** once the user denies permission they have to go to the settings app as you app can only request permission once.

0 commit comments

Comments
 (0)