[英]React Native Firebase Notifications Don't Show While the User is Using the App
I'm using Firebase to send notifications to my React Native frontend.我正在使用 Firebase 向我的 React Native 前端发送通知。 Notifications come through fine when the app is closed, but user's don't receive the notification while they are inside the app.
当应用程序关闭时,通知会正常发送,但用户在应用程序内时不会收到通知。 How can I force the notification through every time?
我怎样才能每次都强制通知?
the notifications are received but not showing when the app is open (foreground) you will have to use this or similar solution to show the notification on the screen in this case.收到通知但未显示应用程序打开时(前台)在这种情况下,您将必须使用此解决方案或类似解决方案在屏幕上显示通知。 check this link
检查此链接
I have used it on android and iOS with no problems.我已经在 android 和 iOS 上使用过,没有任何问题。
You can't "force" them but you can handle them你不能“强迫”他们,但你可以处理他们
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.