腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
react-native-firebase
getInitialNotification
循环
、
、
、
、
当在后台收到消息并单击通知时,将触发
getInitialNotification
。如果我导航到另一个屏幕,而不是回到我的HomeActivity,
getInitialNotification
将再次被触发。如何实现只触发一次?/css/StyleIndex'; import type { Notification, NotificationOpen} from '
react-nati
浏览 3
提问于2018-08-07
得票数 6
1
回答
使用"
react-native-firebase
v6“将数据从通知传递到它打开的应用程序的最佳方法是什么?
、
、
、
我的理解是,我需要使用在
react-native-firebase
v5和更低版本中可用的
getInitialNotification
()函数,但在
react-native-firebase
v6中还不可用remoteMessage) => { await storeJSONData('notification', JSON.stringify(remoteMessage)); }); 我应该降级到
react-native-firebase
v5来使用他们的通知包中的
getInitia
浏览 19
提问于2019-11-05
得票数 0
回答已采纳
1
回答
使用Jest测试firebase云消息传递
、
、
、
、
been called.import RNFirebase from '
react-native-firebase
firebase = RNFirebase.app().messaging(); firebase.
getInitialNotification
浏览 0
提问于2018-10-16
得票数 0
2
回答
反应-本机-火基: onNotificationOpenedApp和
getInitialNotification
不工作于iOS
、
、
、
、
但是,当我试图从
getInitialNotification
()或onNotificationOpenedApp()获取消息时,它总是返回null/undefined。PushHandler.jsimport messaging from '@
react-native-firebase
/messaging';remoteMessage) { // <- always null on iOS /
浏览 20
提问于2020-06-02
得票数 2
回答已采纳
1
回答
react-native firebase fcm setBackgroundMessageHandler不工作
、
、
我使用的是@
react-native-firebase
/messaging。SetBackgroundMessageHandler不工作。Xcode BackgroundMode ScreenShot package.json "@
react-native-firebase
/app": "^11.2.0","@
react
浏览 18
提问于2021-04-19
得票数 3
2
回答
React-本机Firebase将通知onClick推送到我的应用程序中的特定页面
、
、
StyleSheet, Text, View, Alert, AsyncStorage, Button} from 'react-native'; * */ const notificationOpen = await firebase.notifications().
getInitialNotification
notificati
浏览 24
提问于2019-06-21
得票数 1
1
回答
React本机-火基:不总是在iOS上工作的推送通知
、
、
、
、
package.jsonPodfilepod 'FirebaseDenied", error) } this.initialNotificationListener = firebase.notifications().
getInitialNotification</
浏览 4
提问于2020-03-12
得票数 3
回答已采纳
1
回答
云消息是如何在react中工作的--本机-firebase v6.x.x?
、
、
、
、
我已经安装了
react-native-firebase
v6.2,但是现在我找不到实现云消息传递的好帮助。 没有通知模块,谁能帮助使用云消息传递吗?
浏览 2
提问于2019-12-08
得票数 0
1
回答
我们能不能只对android使用react本机防火墙,对于由react本机提供的其他api,我们可以使用它吗?
、
、
我已经实现了PushnotificationIos,一个由react提供的api --本机工作良好。版本详细信息:react本机: 0.55 react原生-firebase:4.0.0。
浏览 0
提问于2018-12-12
得票数 0
回答已采纳
1
回答
如何在打开FCM通知时采取操作/移动屏幕?
、
、
、
、
我当前使用的是FCM React Native Firebase,我希望在打开fcm通知时移动屏幕或采取行动,如下图所示: ?
浏览 38
提问于2020-02-01
得票数 0
回答已采纳
2
回答
RN FireBase推送通知,当app关闭时不能访问通知标题和正文(
getInitialNotification
)
、
Alert.alert(title, body) Alert.alert(title, body)如何通过单击“传入通知”打开应用程序来获取通知内容,"dependencies": {
浏览 6
提问于2019-11-24
得票数 0
回答已采纳
1
回答
在React中测试firebase.messaging().subscribeToTopic() --原生于Jest
、
、
、
、
) {}import '
react-native-firebase
' messaging: jest.fn(() => ({ hasPermission: jest.fnPromise.resolve('myMockToke
浏览 6
提问于2019-11-14
得票数 0
回答已采纳
1
回答
当App打开时,本机Firebase推送通知不起作用
、
我使用@
react-native-firebase
来处理推送通知。问题是,当应用程序处于后台时,它是可以工作的。如果应用程序处于前台或开放状态,则推送通知无效。此外,我正在使用通知费创建自定义通知。"@
react-native-firebase
/app": "^8.3.1","@notifee/react-native_handl
浏览 4
提问于2020-09-09
得票数 4
1
回答
ReactNatice应用程序(Android)不接收来自Firebase消息的通知
、
、
import React, {Component} from 'react'; }); .notifications() .
getInitialNotification
();
浏览 5
提问于2019-12-19
得票数 1
1
回答
React-本机firebase IOS推送通知
、
、
、
我使用"
react-native-firebase
": "^5.5.6" pod 'Firebase/Core', '~> 6.3.0] didRegisterUserNotificationSettings:notificationSettings];下面是我如何在代码中使用它: import firebase from '
react-native-fir
浏览 12
提问于2019-11-01
得票数 2
回答已采纳
1
回答
React native -如何在推送通知点击上导航?
、
、
、
、
我使用的是react-native-push-notification。我遇到了应用程序处于后台/取消状态时通知不显示的问题,多个论坛和GitHub中的解决方案是在PushNotification.configure()函数中初始化和配置推送通知(PushNotification.configure()),onNotification()是单击推送通知时调用的函数。点击后,我想导航到应用程序中的特定屏幕,但目前不可能,因为在index.js中没有可用的导航道具 有没有办法让导航成为可能?
浏览 29
提问于2021-09-08
得票数 4
1
回答
react-native-firebase
在应用程序运行时接收通知
、
、
、
我正在使用
react-native-firebase
实现推送通知。因此,我正在测试云消息传递。当屏幕关闭并处于后台时,我可以收到通知。但是,当应用程序运行时,我无法收到通知。我的代码中有什么问题吗?this.showAlert(title, body); const notificationOpen = await firebase.notifications().
getInitialNotification
浏览 5
提问于2018-12-10
得票数 0
3
回答
响应本机-如何从推送通知打开路由
、
、
、
我正在使用react-navigation和react-native-push-notification。如何在StackNavigator's回调中打开特定的onNotification屏幕?应在下列情况下工作: 我尝试将回调函数传递给组件中的通知: PushNotification.localNotification({ userInteraction: false message:
浏览 1
提问于2017-11-15
得票数 23
回答已采纳
1
回答
响应本地应用程序未通过Firebase云消息传递中的主题接收通知
、
、
、
、
1:PushNotifHelper }; messaging()
浏览 2
提问于2022-04-18
得票数 0
1
回答
图片没有显示在推送通知时,应用程序是在后台还是死亡?
、
对于推送通知,我使用
react-native-firebase
来实现这一点。代码在bgMessaging.js中的应用import type { RemoteMessage } from'
react-native-firebase
'; return Promise.resolve();代码在index.js/
浏览 0
提问于2019-07-24
得票数 1
点击加载更多
相关
资讯
循环
python循环语句讲解(一):while循环
Python:循环与嵌套循环实现规律数列
Golang for 循环
可靠性温度循环试验至少需要几个循环?
热门
标签
更多标签
云服务器
对象存储
ICP备案
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券