[英]React Native Firebase Phone Auth Error is:[firebase_auth/missing-client-identifier] This request is missing a valid app identifier
I am using https://rnfirebase.io for phone auth with the sample code provided from the documentation.我正在使用https://rnfirebase.io进行电话身份验证,并使用文档中提供的示例代码。 With proper setup i am always getting missing-client-identifier error for recaptcha.
通过正确的设置,我总是收到recaptcha的缺失客户端标识符错误。
const confirmation = await auth().signInWithPhoneNumber(phone);
in the app/build.gradle i have the relevant changes在 app/build.gradle 我有相关的变化
apply plugin: "com.android.application" apply plugin: "com.google.gms.google-services"应用插件:“com.android.application” 应用插件:“com.google.gms.google-services”
implementation platform('com.google.firebase:firebase-bom:26.8.0')
implementation 'com.google.firebase:firebase-auth'
implementation 'androidx.browser:browser:1.3.0'
also i have generated SHA1 and SHA256 and copied to firebase app settings.. even after setting up everything still getting the issue with the real phone number我也生成了 SHA1 和 SHA256 并复制到 firebase 应用程序设置.. 即使在设置完所有内容后,真实电话号码仍然存在问题
here is the sample code which is having exactly my changes https://github.com/zolomohan/rn-firebase-phone-auth这是示例代码,它完全符合我的更改https://github.com/zolomohan/rn-firebase-phone-auth
Note: There is a glitch of very minor horizontal bar moves down and no prompt of any browser and ends with the error注意:有一个很小的水平条向下移动并且没有任何浏览器提示并以错误结束的故障
It would be really helpful if someone can help me.如果有人可以帮助我,那将非常有帮助。
What I found is once you ensure your firebase settings, android app settings are perfect then do the final verification on google cloud console API credentials where the SHA1 is properly setup according to the firebase settings. What I found is once you ensure your firebase settings, android app settings are perfect then do the final verification on google cloud console API credentials where the SHA1 is properly setup according to the firebase settings. I had a different SHA1 in google cloud, as soon as I corrected it solves the issue and the reference for the same is here https://github.com/FirebaseExtended/flutterfire/issues/4651#issuecomment-808853566
我在谷歌云中有一个不同的 SHA1,只要我纠正它就解决了问题,同样的参考在这里https://github.com/FirebaseExtended/flutterfire/issues/4651#issuecomment-808853566
my comment on the same https://github.com/FirebaseExtended/flutterfire/issues/4651#issuecomment-810479005我对同一https 的评论://github.com/FirebaseExtended/flutterfire/issues/4651#issuecomment-810479005
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.