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

Commit c37b955

Browse files
Using Non-Firebase Push Messaging with other Firebase Services #1201
1 parent ee542ba commit c37b955

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

demo/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"dependencies": {
1212
"firebase-functions": "^2.0.5",
13-
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-8.2.0.tgz",
13+
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-8.3.0.tgz",
1414
"nativescript-theme-core": "^1.0.4",
1515
"nativescript-unit-test-runner": "^0.3.4",
1616
"tns-core-modules": "~5.2.0"

docs/NON_FIREBASE_MESSAGING.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ You'll be 😃 to learn this plugin has a *lite* mode that won't add any native
55
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:
66
- `y` if you don't want to use any of the Firebase features (Firestore, Realtime DB, Storage, etc), or
77
- `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._
89

910
> The remainder of this document applies to both situations, so please continue reading.
1011

publish/scripts/installer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ post_install do |installer|
409409
end`) + `
410410
411411
# Firebase Cloud Messaging (FCM)
412-
` + (isSelected(result.messaging) ? `` : `#`) + `pod 'Firebase/Messaging'
412+
` + (isSelected(result.messaging) && !isSelected(result.external_messaging) ? `` : `#`) + `pod 'Firebase/Messaging'
413413
414414
# Firebase In-App Messaging (supported on NativeScript 5.2+)
415415
` + (isSelected(result.in_app_messaging) && supportsIOSModernBuildSystem ? `` : `#`) + `pod 'Firebase/InAppMessagingDisplay'

src/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-plugin-firebase",
3-
"version": "8.2.0",
3+
"version": "8.3.0",
44
"description": "Fire. Base. Firebase!",
55
"main": "firebase",
66
"typings": "index.d.ts",

0 commit comments

Comments
 (0)