简体   繁体   English

为什么即使消息服务进程不存在,Android应用仍然可以接收Firebase通知?

[英]Why android app still can receive firebase notification even though the messaging service process not exists?

I wrote an app which implemented the FirebaseMessagingService; 我写了一个实现FirebaseMessagingService的应用程序; I killed the process which the service belongs to, but the app can still receive the notification from firebase console, except that I forced to stop the app. 我终止了该服务所属的进程,但是该应用程序仍然可以从Firebase控制台接收通知,但我被迫停止了该应用程序。

So, I just want to know why the app can still receive the notification event though the service not alive? 因此,我只想知道为什么该应用程序仍无法运行,为什么该应用程序仍可以接收通知事件? What's the mechanism of android? android的机制是什么?

I don't have experience in Firebase, but in previous Google Cloud Messaging it was working this way: at first notifications (pushes) are received by Google Play Services and then redirected to your app starting proper broadcast receiver or service. 我没有使用Firebase的经验,但是在以前的Google Cloud Messaging中,它是这样工作的:首先,Google Play服务会收到通知(推送),然后将其重定向到您的应用,以启动适当的广播接收器或服务。 probalby Firebase is working same way - it's starting new service when it is not running currently probalby Firebase以相同的方式工作-当前未运行时正在启动新服务

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Firebase云消息传递服务 - 即使应用程序被终止也会收到通知 - Firebase Cloud Messaging Service - Receive Notifications even when app is killed Firebase 来自 Android 应用程序的云消息通知 - Firebase Cloud Messaging Notification From Android App Delphi Android Firebase 云消息:收到通知时应用程序崩溃 - Delphi Android Firebase Cloud Messaging : Application crashes on notification receive 即使前台服务的进程在崩溃中死机,前台服务仍然存在 - Foreground service still alive even though its process dies in a crash Android-我的活动如何检测到我在Firebase Messaging Service中收到了通知? - Android - How can my Activity detect that I received a notification in Firebase Messaging Service? Android无法扩展Firebase Messaging Service - Android can't extend Firebase Messaging Service 即使我已关闭“触摸时振动”设置,为什么我的Android应用程序仍会振动? - Why does my android app still vibrate even though I've turned off the Vibrate on Touch in setting? Android:即使触发了onMessageReceived方法,也未收到Firebase推送通知 - Android : Firebase push notification not received even though onMessageReceived method is triggered 即使服务处于另一个进程中,通过艾迪尔执行功能时,Android Activity也被挂起了,为什么? - Android Activity got hanged when executing a function via aidl even though the service is in another process Why? Android中使用sinch的来电通知,我正在使用FireBase Messaging服务,但当应用程序在后台被杀死时却无法接听电话 - Incoming call Notification using sinch in Android ,I am Using FireBase Messaging service but not getting calls when app is killed in background
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM