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