简体   繁体   English

如何使用 firebase 为 IOS Flutter 禁用电话验证中的重新验证

[英]How to disable recaptcha verification in phone Authentication with firebase for IOS Flutter

I am working on a flutter app which has a registration flow like this.我正在开发一个 flutter 应用程序,它具有这样的注册流程。

-The user selects their Google/Apple id depending on the device -Then they enter their phone number to get an SMS -Then they enter the SMS code to verify it -Then they enter their personal info and enter into the app - 用户根据设备选择他们的 Google/Apple id - 然后他们输入他们的电话号码以获取 SMS - 然后他们输入 SMS 代码以验证它 - 然后他们输入他们的个人信息并进入应用程序

This is the flow on Android but on iOS after entering the phone number the in-app browser open {my_project_name}.firebase-app.com website.这是 Android 上的流程,但在 iOS 上输入电话号码后,应用内浏览器打开{my_project_name}.firebase-app.com网站。 It appears for 2-3 seconds and says that verifying for bot(no google captcha appears).它出现 2-3 秒,并表示正在验证机器人(没有出现谷歌验证码)。 And then it redirects me back to app.然后它将我重定向回应用程序。 I want to disable it as it results in bad user experience.(in real device)我想禁用它,因为它会导致糟糕的用户体验。(在真实设备中)

I enabled silent notifications by generating APN's authentication key and uploading it to firebase.我通过生成 APN 的身份验证密钥并将其上传到 firebase 来启用静默通知。

There might be something that I missed but can't find what is it.可能有些东西我错过了,但找不到是什么。

Please help me solving this issue and thank you for giving your time.请帮我解决这个问题,感谢您抽出宝贵的时间。

I found the solution.我找到了解决方案。 In Xcode under signing and capabilities, Enable "Background Modes" capability and Inside of the "Background Modes", you have to click "Remote Notifictions" checkbox.在 Xcode 中的签名和功能下,启用“后台模式”功能和“后台模式”内,您必须单击“远程通知”复选框。 this worked in my case这在我的情况下有效

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Firebase 电话身份验证在 iOS 上弹出 reCAPTCHA 验证 window 即使后台模式和推送通知已启用 - Firebase Phone Authentication pops up a reCAPTCHA verification window on iOS even if Background Modes and Push Notifications are enabled recaptcha 验证后的空白页使用电话号码 Swift 在 iOS 上使用 Firebase 进行身份验证 - blank page after recaptcha verification Authenticate with Firebase on iOS using a Phone Number Swift Firebase 电话身份验证 reCAPTCHA 验证在某些设备上不起作用 - Firebase Phone Auth reCAPTCHA verification not working on some devices Flutter中的Firebase电话身份验证问题 - firebase phone authentication problem in flutter Firestore手机验证导致ios崩溃(Flutter) - Firestore phone verification causes ios to crash (Flutter) 电话号码验证失败 - Flutter(仅限 iOS) - Phone number verification failed - Flutter (iOS ONLY) Firebase认证重发验证码iOS - Firebase authentication resend verification code in iOS 如何删除 Flutter 手机身份验证中的验证码 - How to remove recaptcha in Flutter phone auth 在将值传递给Firebase电话身份验证以在Swift 4中进行验证之前,如何将用户输入从6个OTP UITextFields存储到属性中 - How to store user input from 6 OTP UITextFields to a property before passing the value to Firebase phone authentication for verification in Swift 4 Firebase (Flutter) 验证电话号码始终需要 reCAPTCHA - Firebase (Flutter) authenticate phone number always requires reCAPTCHA
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM