Hi, is there any way to set the real user agent for android web view?

hi, I see there seem to be ways to set the user agent to whatever we want. like I think:
navigator.userAgent
but google oauth2 wants to use my real user agent and I don’t want to lie to it…
does anyone know what the real user agent string is so I can set it thru navigator.userAgent ?

thanks in advanced…
[edit] whatever is there by default does not work… google oauth2 does not let me log in.

I figured it out, it was on the docs:

after this I was able to log in thru google oauth2

if system.getInfo(“platform”) == “android” then
webView:setNativeProperty(“http.agent”, “system”)
end

1 Like