Skip to content

Commit

Permalink
Updaded plugin Preferences table
Browse files Browse the repository at this point in the history
  • Loading branch information
andrehtissot authored Nov 8, 2020
1 parent d436e68 commit fb456df
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Unfortunately, Apple is not as nice to work with, requiring:

## Installation

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

#### Preferences

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

#### Cordova

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

#### Ionic

Default preferences:

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

Complete:

```
```sh
npm install -g cordova@latest # Version 9 or higher required
npm uninstall @ionic-native/fcm # Ionic support is included and conflicts with @ionic-native's implementation.
ionic cordova plugin add cordova-plugin-fcm-with-dependecy-updated \
--variable ANDROID_FCM_VERSION="19.0.0" \
--variable ANDROID_GRADLE_TOOLS_VERSION="3.5.3" \
--variable ANDROID_GOOGLE_SERVICES_VERSION="4.3.3" \
--variable ANDROID_DEFAULT_NOTIFICATION_ICON="@mipmap/notification_icon"
--variable ANDROID_DEFAULT_NOTIFICATION_ICON="@mipmap/ic_launcher" \
--variable ANDROID_FIREBASE_BOM_VERSION="26.0.0" \
--variable ANDROID_GOOGLE_SERVICES_VERSION="4.3.4" \
--variable ANDROID_GRADLE_TOOLS_VERSION="4.1.0" \
--variable IOS_FIREBASE_MESSAGING_VERSION="~> 7.0.0"
```

## Push Payload Configuration
Expand Down

0 comments on commit fb456df

Please sign in to comment.