在firebase.auth.ApplicationVerifier中重新打包reCAPTCHA令牌

问题描述 投票:0回答:1

使用外部Recaptcha令牌的Angular和Cordova Android应用中的Firebase电话身份验证。

我正在创建一个需要通过Firebase进行电话验证的应用程序。该应用程序是基于Web的Angular,包含在Cordova for Android和iOS中。在网络浏览器上运行时,一切都运行良好。在Cordova中包装并在浏览器中运行时,一切都很棒。但是在构建Android APK并在Android上运行时,手机身份验证无法正常运行,因为ReCaptcha渲染器无法加载,因为Android上的原点是“file:\\”。

我在网上搜索了很多,似乎这是the only viable solution

在这个答案中,我能够按照步骤1,2和3在应用程序重定向到的网站上托管ReCaptcha,在那里执行ReCaptcha验证并检索ReCaptcha令牌。

但是在第4步中,它说明如下:

从深层链接解析reCAPTCHA令牌。在firebase.auth.ApplicationVerifier实现中重新打包它。

有人能够帮助解决如何在firebase.auth.ApplicationVerifier中重新打包reCAPTCHA令牌的问题吗?

直到现在我都找不到办法,任何帮助都非常感谢!

android cordova firebase firebase-authentication recaptcha
1个回答
0
投票

毕竟我能够在Android上使用Cordova实现Firebase身份验证,而无需应用所提到的复杂workaroud。

我使用cordova firebase插件执行in this video步骤,它运行良好,并且不需要ReCaptcha验证。

© www.soinside.com 2019 - 2024. All rights reserved.