- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当我们只有可以通过 firebase 控制台发送的通知(显示消息)时,当我们的应用程序处于前台时,将调用 FirebaseMessagingService 的 onMessageReceived 方法。为了获得通知,我创建了 Notification builder,效果很好。我面临的唯一问题是检索消息内容,因为它不是数据通知,remotemessage.getData() 为空,甚至 remotemessage.getNotificationBody() 也为空。我调试了程序,remoteMessage 有一个字段存储发送的消息,但我无法检索它。请帮我。附件是显示从 firebase 控制台发送的消息的必填字段的快照,以黄色突出显示。
最佳答案
我明白了.. 很简单::) getNotification().getBody() ;
关于安卓火力地堡 : how get the message text component of notification message from firebase when app is in foreground,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48084869/
我正在使用 Firebase 在我的应用程序中添加登录/注册。它运行良好,但现在我想检查用户在打开应用程序时是否已经注册并登录,如果是这样,则向他显示主页,否则向他显示登录页面。所以我做了一些搜索,主
我使用 flutter 。我想仅在 2020 年 4 月 26 日这一周将 Firebase 中的 CH 值更新为 false。什么时候有办法? 失败的 Ex.cord: _firestore.col
我来寻求您对我的申请中遇到的问题的帮助。 问题是这样的:新闻源上的帖子位于此捕获中的此帖子 -> [postid] 位置下的数据库中 ,当用户保存帖子时,它在数据库中的存储方式如下:用户 -> [us
我是一名优秀的程序员,十分优秀!