使用 expo 权限反应原生 firebase 推送通知 [英] React native firebase push notifications using expo permission

查看:28
本文介绍了使用 expo 权限反应原生 firebase 推送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能帮我解决这个警告?

Can anyone help me to resolve this warning?

我正在尝试在 React Native 中使用 expo 发送推送通知.我还尝试将权限从通知更改为权限,但没有运气.

I am trying to send push notification using expo in React native. I also tried to change permission from Notification to Permission but no luck.

在尝试访问设备令牌以发送通知时发出警告

推荐答案

你是在做托管流还是裸工作流?

Are you doing the managed flow or bare workflows?

我没有得到这个确切的信息,但我得到了很多相似的信息.(我正在使用托管流).可能的罪魁祸首是您的 Firebase 云消息传递设置存在漏洞.

I didn't get this exact message, but I got many that are similar. (I'm using a Managed flow). Likely culprit is a gap in your Firebase Cloud Messaging setup.

请务必在此处查看所有说明:https://docs.expo.dev/push-notifications/using-fcm/

Be sure to review all the instructions expo here: https://docs.expo.dev/push-notifications/using-fcm/

我还添加了对现有 SO 的回复,其中记录了我的一些绊脚石,这些绊脚石也可能会影响您.就是在这里:执行导出方法时发生异常模块 ExpoPushTokenManager 上的 getDevicePushTokenAsync

I also added a response to an existing SO documenting some of my stumbling blocks which may be affecting you as well. That is here: Exception occurred while executing exported method getDevicePushTokenAsync on module ExpoPushTokenManager

这篇关于使用 expo 权限反应原生 firebase 推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆