Commit ab9d4351 authored by Libin Lu's avatar Libin Lu

Update README.md

parent a3062abd
...@@ -146,8 +146,8 @@ NOTE: it is recommend not to reply on extra data for click_action as it can be o ...@@ -146,8 +146,8 @@ NOTE: it is recommend not to reply on extra data for click_action as it can be o
Try update your SDK and google play service Try update your SDK and google play service
### I can't get notification data when app is killed? ### I can't get notification data when app is killed?
If you send notification with `data` only, you can only get the data message when app is in foreground or background. Killed app doesn't trigger FCMNotificationReceived. Seems that is how FCM works today If you send notification with `data` only, you can only get the data message when app is in foreground or background. Killed app doesn't trigger FCMNotificationReceived. Seems that is how FCM works today
### App running in background doesn't get `FCMNotificationReceived` [Android] ### App running in background doesn't trigger `FCMNotificationReceived` when receiving hybrid notification [Android]
Well these is [an issue opened there](https://github.com/google/gcm/issues/63). You will received data payload in FCM.initialData if you click on the notification. But if you just open the app, the data is lost. These is [an issue opened for that](https://github.com/google/gcm/issues/63). You will received data payload in FCM.initialData if you click on the notification. But if you just open the app, the data is lost.
### I can't get `notification` payload when my android app is in foreground ### I can't get `notification` payload when my android app is in foreground
It is better to use data payload if you need to pass data into application. I haven't implemented notification payload bridging in android module and am not planning to (the SDK should post notification for you) It is better to use data payload if you need to pass data into application. I haven't implemented notification payload bridging in android module and am not planning to (the SDK should post notification for you)
### Notification payload and data payload are mixed in iOS app. ### Notification payload and data payload are mixed in iOS app.
......
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