【发布时间】:2017-07-04 08:24:33
【问题描述】:
在Android APP中,我已经使用FCM接收云消息,当应用程序处于前台时,MyFirebaseMessageService.java(我定义的)运行。但是当应用程序在后台或没有运行时,MyFirebaseMessageService.java 没有运行,我也可以收到通知,当我点击通知时,我在哪里可以得到云消息?
【问题讨论】:
标签: android notifications push
在Android APP中,我已经使用FCM接收云消息,当应用程序处于前台时,MyFirebaseMessageService.java(我定义的)运行。但是当应用程序在后台或没有运行时,MyFirebaseMessageService.java 没有运行,我也可以收到通知,当我点击通知时,我在哪里可以得到云消息?
【问题讨论】:
标签: android notifications push
将您的推送作为数据而不是作为通知发送,它将始终在 MyFirebaseMessageService onMessageReceived 中接收。
https://firebase.google.com/docs/cloud-messaging/concept-options
【讨论】: