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

Commit 06786d0

Browse files
πŸ‘¨β€πŸ¦°πŸ‘©
1 parent f111643 commit 06786d0

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

β€Ždocs/AUTHENTICATION.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ To listen to auth state changes you can register a listener during `init`:
6868

6969
```js
7070
firebase.init({
71-
onAuthStateChanged: function(data) { // optional but useful to immediately re-logon the user when he re-visits your app
71+
onAuthStateChanged: function(data) { // optional but useful to immediately re-logon the user when they re-visit your app
7272
console.log(data.loggedIn ? "Logged in to firebase" : "Logged out from firebase");
7373
if (data.loggedIn) {
7474
console.log("user's email address: " + (data.user.email ? data.user.email : "N/A"));

β€Ždocs/CRASHLYTICS.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ crashlytics.setUserId("user#42");
6262
```
6363

6464
### `log`
65-
Add a message that will be logged with an error and showing int he Firebase console on the 'Logs' tab of the error details.
65+
Add a message that will be logged with an error and showing in the Firebase console on the 'Logs' tab of the error details.
6666

6767
```typescript
6868
crashlytics.log("more log info...");

β€Ždocs/MESSAGING.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ Each action has a type of either `button` or `input`, and you can set `options`
220220
- Make the text red to indicate something will be removed/deleted/killed: `destructive`.
221221

222222
Consider this example, where an interactive push notification is received which the user expands and picks the fourth option.
223-
He then types his reply, and (because of how the action was configured) the app launches and captures the reply.
223+
They then type their reply, and (because of how the action was configured) the app launches and captures the reply.
224224

225225
<img src="https://raw.githubusercontent.com/EddyVerbruggen/nativescript-plugin-firebase/master/docs/images/messaging/interactive01.png" height="270px" alt="Interactive Notification, part 1"/> <img src="https://raw.githubusercontent.com/EddyVerbruggen/nativescript-plugin-firebase/master/docs/images/messaging/interactive02.png" height="270px" alt="Interactive Notification, part 2"/> <img src="https://raw.githubusercontent.com/EddyVerbruggen/nativescript-plugin-firebase/master/docs/images/messaging/interactive03.png" height="270px" alt="Interactive Notification, part 3"/> <img src="https://raw.githubusercontent.com/EddyVerbruggen/nativescript-plugin-firebase/master/docs/images/messaging/interactive04.png" height="270px" alt="Interactive Notification, part 4"/>
226226

β€Ždocs/NON_FIREBASE_MESSAGING.mdβ€Ž

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
If you read this, chances are you want Push Notifications, but want to use a third-party push service instead of interfacing with Firebase Cloud Messaging directly.
22

3-
You'll be πŸ˜ƒ to learn this plugin has a *lite* mode that won't add any native Firebase dependencies (or *Pod* libraries) on iOS, and only the bare necessities on Android (on Android, Push Messaging will always use FCM, regardless the push service).
3+
You'll be πŸ˜ƒ to learn this plugin has a *lite* mode that won't add any native Firebase dependencies (or *Pod* libraries) on iOS, and only the bare necessities on Android (on Android, Push Messaging will always use FCM, regardless the push service) in case you only want to use an external push client.
44

5-
Go to you app's root folder and remove `firebase.nativescript.json`, then run `npm i`. You will be prompted `"Are you using this plugin ONLY as a Push Notification client for an external (non-Firebase) Push service? (y/n)"`. Answer:
6-
- `y` if you don't want to use any of the Firebase features (Firestore, Realtime DB, Storage, etc), or
7-
- `n` in case you do want to use some of the features (you will be asked which features later).
8-
- _If you want to use an external messaging provider, but ALSO want to use other Firebase features, then answer `n` as well and after finishing all questions, open `firebase.nativescript.json` and add `"external_messaging": true`. On Android that won't do anything special, but on iOS it will avoid loading the Firebase Messaging Pod._
5+
Go to you app's root folder and remove `firebase.nativescript.json`, then run `npm i`. At one point you will be prompted `"Are you using this plugin as a Push Notification client for an external (NOT Firebase Cloud Messaging) Push service? (y/n)"` and answer `y`.
96

10-
> The remainder of this document applies to both situations, so please continue reading.
7+
> ⚠️ Plugin version 10.1.0 removed support for the `external_messaging` property in `firebase.nativescript.json`. Please remove that file and re-run `npm i` if you had that hacky solution.
118
129
## Demo app
1310
I've tried applying best practices to a [dedicated push-only demo app](/demo-push).
@@ -128,7 +125,7 @@ Each action has either type `button` or `input`, and you can set `options` to do
128125
- Make the text red to indicate something will be removed/deleted/killed: `destructive`.
129126

130127
Consider this example, where an interactive push notification is received which the user expands and picks the fourth option.
131-
He then types his reply, and (because of how the action was configured) the app launches and captures the reply.
128+
They then type their reply, and (because of how the action was configured) the app launches and captures the reply.
132129

133130
<img src="https://raw.githubusercontent.com/EddyVerbruggen/nativescript-plugin-firebase/master/docs/images/messaging/interactive01.png" height="270px" alt="Interactive Notification, part 1"/> <img src="https://raw.githubusercontent.com/EddyVerbruggen/nativescript-plugin-firebase/master/docs/images/messaging/interactive02.png" height="270px" alt="Interactive Notification, part 2"/> <img src="https://raw.githubusercontent.com/EddyVerbruggen/nativescript-plugin-firebase/master/docs/images/messaging/interactive03.png" height="270px" alt="Interactive Notification, part 3"/> <img src="https://raw.githubusercontent.com/EddyVerbruggen/nativescript-plugin-firebase/master/docs/images/messaging/interactive04.png" height="270px" alt="Interactive Notification, part 4"/>
134131

0 commit comments

Comments
Β (0)