且构网

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

当应用程序在后台时,FCM 无法显示弹出窗口

更新时间:2022-12-27 10:33:31

我发现的***解决方案是仅使用 Data 有效负载并处理 onMessageReceived 中的后台/前台消息代码>方法并显示您的自定义通知.

The best solution i have found is to use only Data payload and handle both background/foreground messages inside onMessageReceivedmethod and show your custom notifications.