android - Firebase handleIntent 未收到实际的额外参数

标签 android firebase firebase-cloud-messaging

FirebaseMessagingService.handleIntent(Intent intent) 完全绕过 onMessageReceived()。 无论应用程序是否在后台,前者都会被调用,即使是通知消息也是如此。

但是当我从控制台调用时我无法获得任何额外的参数。firebase -> Notification

最佳答案

您是否收到来自 firebase 的任何通知或在解析数据时遇到问题? 如果您手动配置了 firebase,请确保在 Manifest 文件中添加 FirebaseMessagingService,以便您的应用程序可以接收传入的消息。并且 google.json 文件已更新并与您在 firebase 控制台中的应用程序同步。

关于android - Firebase handleIntent 未收到实际的额外参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46578334/

相关文章:

Android:Firebase token 在第一次运行时为空

android - 帮助调试 Android/Eclipse 中的线程 (AsyncTask) RuntimeException 原因

Android Lollipop 模拟器 Nexus S 未运行该应用程序

android - 运行 openCV 示例时没有菜单(Android Studio)

firebase - Firebase存储工件很大,并且还在不断增加

android - 如何制作通知 Activity 以在android中保存通知

android - 如何更改附加到导航 View 的子菜单的文本和图标的颜色?

android - 使用 Node.JS 向 Firebase 发出 HTTPS 请求

android - 无法捕获 Firebase 异常

firebase - 导入 Firebase_Messaging 导致构建失败