B4J Question Google recaptcha V2 Not displayed in webview with jdk11

Erel

B4X founder
Staff member
Licensed User
Longtime User
Dim useragent As String=$""use required / intended UA string""$
we.RunMethod("setUserAgent",Array(useragent))
Why do we need to guess what is 'we'???

I get this with Java 14:



B4X:
WebView1.LoadUrl("https://www.google.com/recaptcha/api2/demo")
Dim we As JavaObject = WebView1
we = we.RunMethod("getEngine", Null)
Dim useragent As String=$""use required / intended UA string""$
we.RunMethod("setUserAgent",Array(useragent))
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…