大佬教程收集整理的这篇文章主要介绍了来自 js 的本机调用中的异常 ?? react-native-firebase/数据库错误,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
react-native-firebase/app << set complete and call OK
import Firebase from "@react-native-firebase/app"
import Database from "@react-native/firebase/database <<<error start,Database().ref("users/"+ "userID").set({
hopoint:5,userPoint:5000
})
<<<<< error on.
just call Database() <<< error On
为什么?
尝试像这样使用 google services 4.3.5 com.google.gms:google-services:4.3.5
它在 firebase 项目配置中列出,以前是 4.3.4,所以可能在 4.3.5 中进行了小修。
基于这些行:
Database().ref("users/" + "userId").set({
hopoint:5,userPoint:5000
})
您已以用户 @XYZ
的身份登录,但由于您试图写入 @userId
的数据而收到权限错误。
您可能打算使用 userId
的 value 而不是字符串 "userId"
。
Database().ref("users/" + userId).set({
hopoint:5,userPoint:5000
})
以上是大佬教程为你收集整理的来自 js 的本机调用中的异常 ?? react-native-firebase/数据库错误全部内容,希望文章能够帮你解决来自 js 的本机调用中的异常 ?? react-native-firebase/数据库错误所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。