From 69288713d4727236a034a7a42ceb027f17ab8d28 Mon Sep 17 00:00:00 2001 From: Libin Lu Date: Wed, 4 Apr 2018 13:20:45 -0400 Subject: [PATCH] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 29a8139..9a9edbc 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: -- 2.26.2