And*_*rea 5 notifications android google-cloud-messaging
我正在编写一个 Android 应用程序,它使用 Google Cloud Messaging 从服务器接收下游消息。当onMessageReceived我收到一条消息时,我打印了这个包并阅读了这个:
RECEIVED PUSH NOTIFICATION: Bundle[{gcm.notification.e=1, gcm.notification.badge=1, gcm.notification.sound=default, ..etc...
Run Code Online (Sandbox Code Playgroud)
我不明白 通知负载中的关键gcm.notification.e。在 Google 文档中,我没有找到类似的内容。此外,在发送消息时,我通常会同时指定通知负载和数据负载。现在我尝试删除通知负载,但我仍然收到 gcm.notification.e=1
有人可以帮助我理解这个键并找到删除它的方法吗?谢谢
编辑:我发现发送没有通知有效负载的消息并且使用content_available=false(我在使用 iOS 时将其设置为 true)然后gcm.notification.e=1未收到。我只收到数据有效负载:)。不过我还是想知道这句话的意思e
| 归档时间: |
|
| 查看次数: |
778 次 |
| 最近记录: |