一段时间后未收到 FCM 通知
我已经在我的聊天应用程序中实现了 firebase 云消息传递,我使用改造通过 fcm 通知从源用户向目标用户发送消息,即使应用程序关闭,有时一切正常,但几个小时后我没有收到任何通知。为什么会发生这种情况?感谢任何帮助,提前致谢。
I've implemented firebase cloud messaging into my chat application, im using retrofit to send message through fcm notification from source user to destination user, everything works fine for sometime even when the app is closed, but after say some hours i don't receive any notification. Why this might be happening? any help is appreciated, thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否看过以下内容:https://firebase.google.com/docs/云消息/android/接收?
为了继续接收,当应用程序被杀死时,您需要标记您的 Firebase 服务类,以免主应用程序被杀死。
做类似的事情(未经测试)
这也可能有帮助: https:/ /github.com/firebase/quickstart-android/issues/41#issuecomment-306066751
Did you look about this : https://firebase.google.com/docs/cloud-messaging/android/receive ?
To keep receiving, when the app is killed, you need to mark your Firebase Service class to not get killed with your main app.
Do something like that (not tested)
This may also help : https://github.com/firebase/quickstart-android/issues/41#issuecomment-306066751