Commit e38f3283 authored by Libin Lu's avatar Libin Lu Committed by GitHub

Update README.md

parent 2952e048
...@@ -416,7 +416,8 @@ class App extends Component { ...@@ -416,7 +416,8 @@ class App extends Component {
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. 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
NOTE2: `custom_notification` **cannot** be used together with `notification` attribute. use `data` only
WARNING: `custom_notification` **cannot** be used together with `notification` attribute. use `data` **ALONE**
Example of payload that is sent to FCM server: Example of payload that is sent to FCM server:
``` ```
......
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