简体   繁体   English

React Native Firebase 电话身份验证错误是:[firebase_auth/missing-client-identifier] 此请求缺少有效的应用标识符

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

相关问题 Firebase 电话身份验证因 MISSING_CLIENT_IDENTIFIER 而失败 - firebase phone auth failing with MISSING_CLIENT_IDENTIFIER React Native Firebase 电话身份验证使 reCaptcha (Android) 上的应用程序崩溃 - React Native Firebase phone auth crashes the app on reCaptcha (Android) 使用 firebase 电话身份验证验证本机反应失败 - react native with firebase phone auth validation failed Firebase 身份验证在更改包名称后返回“缺少有效的应用标识符” - Firebase authentication returns `missing a valid app identifier` after changing package name @react-native-firebase/auth:应用程序未授权 signInWithPhoneNumber 错误 - @react-native-firebase/auth: app not authorized Error in signInWithPhoneNumber firebase.auth.PhoneAuthProvider丢失 - firebase.auth.PhoneAuthProvider missing 生成签名的 APK 后,本机 Firebase 电话身份验证不起作用 - react native firebase phone auth not works after generating signed APK Firebase 电话身份验证不会在真实设备上发送代码 - React Native - Firebase phone auth does not send code on real device - React Native 配置项目“:firebase_auth”时出现问题? - A problem occurred configuring project ':firebase_auth'? 如何在本机反应中添加 firebase 电话号码身份验证? - How to add firebase phone number auth in react native?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM