且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

当应用程序在后台/未运行时,未在通知点击上打开特定活动

更新时间:2022-12-27 11:44:14

根据Firebase Cloud Messaging文档-如果Activity位于前台,则将调用onMessageReceived.如果活动"处于后台或关闭状态,则通知消息将显示在通知中心中,用于启动应用程序的活动. 有关更多信息,请检查此链接

As per Firebase Cloud Messaging documentation-If Activity is in foreground then onMessageReceived will get called. If Activity is in background or closed then notification message is shown in the notification center for app launcher activity. For More information Check this link