diff --git a/README.md b/README.md index 29a8139b8b24fd6fd8ad2ab4b98ce26cff525af5..9a9edbc30cd063b09e997e504b8c7441cf8d7579 100644 --- a/README.md +++ b/README.md @@ -318,7 +318,7 @@ NOTE: `com.evollu.react.fcm.FIRLocalMessagingPublisher` is required for presenti ### Build custom push notification for Android Firebase android misses important feature of android notification like `group`, `priority` and etc. As a work around you can send data message (no `notification` payload at all) and this repo will build a local notification for you. If you pass `custom_notification` in the payload, the repo will treat the content as a local notification config and shows immediately. -NOTE: By using this work around, you will have to send different types of payload for iOS and Android devices because custom_notification isn't supported on iOS +NOTE: By using this work around, you will have to send different types of payload for iOS and Android devices because **custom_notification isn't supported on iOS** WARNING: `custom_notification` **cannot** be used together with `notification` attribute. use `data` **ALONE** @@ -342,6 +342,9 @@ Example of payload that is sent to FCM server: } ``` +Example of payload that is sent through firebase console: +screen shot 2018-04-04 at 1 18 09 pm + Check local notification guide below for configuration. **IMPORTANT**: When using the `admin.messaging` API, you need to `JSON.stringify` the `custom_notification` value: