简体   繁体   English

React Native Firebase 用户使用应用程序时不显示通知

[英]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.

相关问题 在 Firebase 云消息传递中,React 本机应用程序未通过 TOPIC 接收通知 - React native app not receiving notifications via TOPIC in Firebase cloud messaging Firebase 通知 ios - React native - Firebase notifications on ios - React native iOS 无法在 react-native-firebase 中接收通知 - iOS can't receive notifications in react-native-firebase 反应本机应用程序上的 rnfirebase 不起作用 - rnfirebase on react native app don't work IOS 推送通知不适用于使用 firebase 和 react-native-push-notifications 的 react native - IOS push notifications not working on react native using firebase and react-native-push-notifications 将模拟器与 react-native 一起使用时,Firestore 批量删除不起作用 - Firestore batch delete don't work while using emulator with react-native 图片不显示在 Notification React Native Firebase - Image Doesn't show in Notification React Native Firebase 反应本机应用程序中的静默推送通知 - silent push notifications in react native app Android 12 firebase 当应用程序在后台时,推送通知不起作用 - Android 12 firebase push notifications don't work when app is in the background Firebase 用户注销在本机反应中不起作用 - Firebase user signOut doesn't work in react native
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM