[英]I want to handle message when notification received with app not running
在Android APP中,我已經使用FCM接收Cloud Message,而當應用程序為前台時,運行了MyFirebaseMessageService.java
(我定義)。 但是,當應用程序處於后台運行或未運行時, MyFirebaseMessageService.java
無法運行,我還可以收到通知,當我單擊通知時,在哪里可以獲取雲消息?
將推送作為數據而不是作為通知發送,它將始終在MyFirebaseMessageService onMessageReceived中接收。
https://firebase.google.com/docs/cloud-messaging/concept-options
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.