I ran through the same problem and the solution in my case was to add the cordova webview plugin. This way, it's not needed the ReCaptcha for android, it will work with the reCaptcha for websites.
Uninstall it if you already have installed:
cordova plugin rm cordova-plugin-ionic-webview
Install latest version:
cordova plugin add cordova-plugin-ionic-webview@latest
I used the Ngx-Captcha
version 5.0.4 to be able to use on ionic 3.
Currently, I'm using the reCaptcha V3, but it works to version 2 too.
[IOS]
In order to reCaptcha work in IOS with the WebView, you need to add the following to the config.xml:
<allow-navigation href="https://www.google.com/recaptcha/*" />
Don't forget to add 'localhost' domain in the reCaptcha console.
For more details on how to use the ngx-captcha
, check this question:
how can I install correctly ngx-recaptcha on my project?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…