recaptcha icon indicating copy to clipboard operation
recaptcha copied to clipboard

Recaptcha v2 and v3 not working in Android webview

Open josiahking opened this issue 4 years ago • 8 comments

I have recaptcha included in sign in (v3) and sign up (v2) pages. It works went using the website directly via browsers. But when building the android app using webview, recaptcha does work.

Message: Could not connect to reCAPTCHA service. Please check your internet connection and reload to get reCAPTCHA challenge.

The website is https://jobman.uk.tempcloudsite.com/account/signup The app source file is https://github.com/josiahking/tabrisjs-webview-demo

josiahking avatar Jun 17 '20 05:06 josiahking

Hi, am still looking for solution to this.

josiahking avatar Jun 19 '20 08:06 josiahking

Hello!

I'm using Cordova (with Vue as the main framework) with ReCaptcha v3, have disabled the domain validation (origin check), still, getting the error Error for site owner. Invalid domain for site key. This happens only in native apps, works fine in mobile browsers. Anyone faced this, kindly help...

Thank you.

k-sai-kiranmayee avatar Jan 12 '21 07:01 k-sai-kiranmayee

Using ReCaptcha v3 I am facing the same issue. Is there any solution ? Basically captcha does not return any verify token.

krishnaTORQUE avatar Jul 24 '21 19:07 krishnaTORQUE

Did anyone manage to get any workaround?

waqas-334 avatar Feb 12 '22 10:02 waqas-334

Running into issues with Android and reCAPTCHA v3 as well. Anyone have any updates?

iworkinprogress avatar Mar 14 '22 15:03 iworkinprogress

Hi, this worked for me. Do not change the user agent of WebView. The default one will work perfectly. I implemented WebView in my this app (https://play.google.com/store/apps/details?id=com.androidbull.incognitobrowser.lite) and it worked perfectly fine.

Even if you change the user agent, you set the latest android version there. Like this "Mozilla/5.0 (Linux; U; Android 11; de-de; GT-I8190 Build/JZO54K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30"

Hope it helps

waqas-334 avatar Sep 29 '22 01:09 waqas-334

use dimension 100% in mwebview

bharathGowda-logituit avatar Mar 14 '23 02:03 bharathGowda-logituit

At me it worked if I set UserAgent as this:

mWebView.getSettings().setUserAgentString("Android");

Sargius avatar Apr 06 '24 07:04 Sargius