Commit 60edd3a4 authored by Libin Lu's avatar Libin Lu Committed by GitHub

Update README.md

parent cb2c6ccf
...@@ -19,6 +19,7 @@ I've created [an example project](https://github.com/evollu/react-native-fcm/tre ...@@ -19,6 +19,7 @@ I've created [an example project](https://github.com/evollu/react-native-fcm/tre
### Versions ### Versions
- after v16.0.0, Android target SDK has be to >= 26 and build tool has to be >= 26.0.x
- for iOS SDK < 4, use react-native-fcm@6.2.3 (v6.x is still compatible with Firebase SDK v4) - for iOS SDK < 4, use react-native-fcm@6.2.3 (v6.x is still compatible with Firebase SDK v4)
- for RN < 0.40.0, use react-native-fcm@2.5.6 - for RN < 0.40.0, use react-native-fcm@2.5.6
- for RN < 0.33.0, use react-native-fcm@1.1.0 - for RN < 0.33.0, use react-native-fcm@1.1.0
...@@ -27,10 +28,6 @@ I've created [an example project](https://github.com/evollu/react-native-fcm/tre ...@@ -27,10 +28,6 @@ I've created [an example project](https://github.com/evollu/react-native-fcm/tre
### Example ### Example
- An example working project is available at: https://github.com/evollu/react-native-fcm/tree/master/Examples/simple-fcm-client - An example working project is available at: https://github.com/evollu/react-native-fcm/tree/master/Examples/simple-fcm-client
### Android 26
- DO NOT change Android targetSdkVersion >= 26. The notification won't show up because of notification channel requirement.
If you have to upgrade, you can use sdk-26 branch and post feedback on [here](https://github.com/evollu/react-native-fcm/pull/699)
## Installation ## Installation
- Run `npm install react-native-fcm --save` - Run `npm install react-native-fcm --save`
...@@ -325,6 +322,12 @@ Edit AndroidManifest.xml ...@@ -325,6 +322,12 @@ Edit AndroidManifest.xml
+ <category android:name="android.intent.category.DEFAULT" /> + <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter> + </intent-filter>
+ </receiver> + </receiver>
+ <meta-data
+ android:name="com.google.firebase.messaging.default_notification_icon"
+ android:resource="@mipmap/ic_notif" /> <!-- your default notificaiton icon file -->
+ <meta-data
+ android:name="com.google.firebase.messaging.default_notification_channel_id"
+ android:value="test-channel"/> <!-- your default notificaiton channel -->
</application> </application>
``` ```
NOTE: `com.evollu.react.fcm.FIRLocalMessagingPublisher` is required for presenting local notifications. `com.evollu.react.fcm.FIRSystemBootEventReceiver` is required only if you need to schedule future or recurring local notifications NOTE: `com.evollu.react.fcm.FIRLocalMessagingPublisher` is required for presenting local notifications. `com.evollu.react.fcm.FIRSystemBootEventReceiver` is required only if you need to schedule future or recurring local notifications
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment