Skip to content

Commit fb456df

Browse files
authored
Updaded plugin Preferences table
1 parent d436e68 commit fb456df

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

README.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Unfortunately, Apple is not as nice to work with, requiring:
4141

4242
## Installation
4343

44-
Make sure you have ‘google-services.json’ for Android or ‘GoogleService-Info.plist’ for iOS in your Cordova project root folder.
44+
Make sure you have ‘google-services.json’ for Android and/or ‘GoogleService-Info.plist’ for iOS in your Cordova project root folder.
4545

4646
#### Preferences
4747

@@ -52,6 +52,7 @@ Make sure you have ‘google-services.json’ for Android or ‘GoogleService-In
5252
|ANDROID_FIREBASE_BOM_VERSION|26.0.0|[Firebase BoM](https://firebase.google.com/docs/android/learn-more#bom) version.|
5353
|ANDROID_GOOGLE_SERVICES_VERSION|4.3.4|Native Google Services SDK version.|
5454
|ANDROID_GRADLE_TOOLS_VERSION|4.1.0|Gradle tools version.|
55+
|IOS_FIREBASE_MESSAGING_VERSION|~> 7.0.0|Native Firebase Message SDK version|
5556

5657
#### Cordova
5758

@@ -69,32 +70,34 @@ Complete:
6970
npm install -g cordova@latest # Version 9 or higher required
7071
npm uninstall @ionic-native/fcm # Ionic support is included and conflicts with @ionic-native's implementation.
7172
cordova plugin add cordova-plugin-fcm-with-dependecy-updated \
72-
--variable ANDROID_FCM_VERSION="19.0.0" \
73-
--variable ANDROID_GRADLE_TOOLS_VERSION="3.5.3" \
74-
--variable ANDROID_GOOGLE_SERVICES_VERSION="4.3.3" \
75-
--variable ANDROID_DEFAULT_NOTIFICATION_ICON="@mipmap/notification_icon"
73+
--variable ANDROID_DEFAULT_NOTIFICATION_ICON="@mipmap/ic_launcher" \
74+
--variable ANDROID_FIREBASE_BOM_VERSION="26.0.0" \
75+
--variable ANDROID_GOOGLE_SERVICES_VERSION="4.3.4" \
76+
--variable ANDROID_GRADLE_TOOLS_VERSION="4.1.0" \
77+
--variable IOS_FIREBASE_MESSAGING_VERSION="~> 7.0.0"
7678
```
7779

7880
#### Ionic
7981

8082
Default preferences:
8183

82-
```
84+
```sh
8385
npm install -g cordova@latest # Version 9 or higher required
8486
npm uninstall @ionic-native/fcm # Ionic support is included and conflicts with @ionic-native's implementation.
8587
ionic cordova plugin add cordova-plugin-fcm-with-dependecy-updated
8688
```
8789

8890
Complete:
8991

90-
```
92+
```sh
9193
npm install -g cordova@latest # Version 9 or higher required
9294
npm uninstall @ionic-native/fcm # Ionic support is included and conflicts with @ionic-native's implementation.
9395
ionic cordova plugin add cordova-plugin-fcm-with-dependecy-updated \
94-
--variable ANDROID_FCM_VERSION="19.0.0" \
95-
--variable ANDROID_GRADLE_TOOLS_VERSION="3.5.3" \
96-
--variable ANDROID_GOOGLE_SERVICES_VERSION="4.3.3" \
97-
--variable ANDROID_DEFAULT_NOTIFICATION_ICON="@mipmap/notification_icon"
96+
--variable ANDROID_DEFAULT_NOTIFICATION_ICON="@mipmap/ic_launcher" \
97+
--variable ANDROID_FIREBASE_BOM_VERSION="26.0.0" \
98+
--variable ANDROID_GOOGLE_SERVICES_VERSION="4.3.4" \
99+
--variable ANDROID_GRADLE_TOOLS_VERSION="4.1.0" \
100+
--variable IOS_FIREBASE_MESSAGING_VERSION="~> 7.0.0"
98101
```
99102

100103
## Push Payload Configuration

0 commit comments

Comments
 (0)