Does anyone know how to set a custom user-agent for webview component?
I’m trying to set a specific custom user-agent that only my website can read and display content accordingly.
All I could figure out was to put this
`
WebView myWebView = (WebView)findViewById(R.id.webview);
String userAgent = view.getSettings().getUserAgentString() ;
myWebView.getSettings().setUserAgentString(userAgent);
in the onCreate method of the java class for the activity that displays the WebView.
But I couldn’t figure out how to do it with Appgyver. Any help would be much appreciated.
`