B4i Question Webview: User agent and cookies - Semen Matusovskiy (first post)    May 27, 2020   (1 reaction) A code, which you posted, can't work, because it was relative UIWebView.
In current B4i release WebView is WKWebView https://developer.apple.?language=objc , which has another API.
Since IOS 9 WKWebView has customUserAgent property,
Cookies ... You can start https://www.b4x.-cookies-from-a-wkwe B4A Question SOLVED - Cannot load page in webview - JohnC (first post)    Aug 25, 2024 Network Check: Try different networks or a VPN to see if it's a network-related issue. User-Agent: Consider setting the WebView's user agent string to mimic a common browser to see if that affects loading: String userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like B4A Question Webview detect language in app and user-agent - drgottjr (first post)    Oct 23, 2022 spoken language? written language? programming language?
please refer to the attached image to see one way to see your webview's userAgent. i assume that's what you meant. B4J Question (solved) Webview Username & Password - Erel (first post)    Jan 05, 2021   (1 reaction) Based on this answer: https://stackoverflow.com/a/44853602/971547 you can hack the user agent to add the authorization header.
Set user agent: https://www.b4x.-question.75960/post-482026
SetUserAgent(WebView1, $"foo
Authorization: Basic YourBase64EncodedCredentials"$) 'make sure that there is no B4A Example Hide Packagename and UserAgent on Webview - Douglas Farias    Oct 17, 2018   (8 reactions) Hi all. I found this example in some old folders on my pc and decided to share here. it is a simple example of how hide the packagename and a user agent on a webview. This example use the code snippet of @MarcoRome https://www.b4x.-headers-in-webview.56807/#content with some modifications. on @Mar B4A Question Change WebView UserAgent - JohnC (first post)    Feb 26, 2023   (1 reaction) Here is the code to change it:
Dim wvs As WebViewSettings
'initialize wvs here
'wv = webview
Dim UA As String
UA = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.246" 'or set any of the useragents listed below
wvs.setUser B4A Question Webview while access google API show user-agent is not permitted - Intiwhiz    May 09, 2017 Dear All,
While I use webview component for access the URL and access google API, show error user-agent is not permitted as picture below
Anyone know, how solve this issue
your answer is really appriciated B4A Question Webview Desktop-mode problem - Erel (first post)    Oct 26, 2017   (1 reaction) Example of a desktop user agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0 B4A Question View the Desktop version of a site with WebView - JohnC (first post)    Aug 07, 2019   (1 reaction) Try using this webviewSettings library:
https://www.b4x..12929/
It will allow you to set various settings like the user agent, wideviewport, overviewmode using regular methods instead of using a java object (like you did in the previous code above).
See if it works better for you. B4J Question WebView not engime crome, edge ,,,, - Erel (first post)    Aug 30, 2018   (1 reaction) You can change the user agent:
Dim jo As JavaObject = WebView1
jo = jo.RunMethod("getEngine", Null)
jo.RunMethod("setUserAgent", Array("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36"))
'check:
WebView1.LoadUrl("https://www.whatis Page: 1   2   3   4   5   6   7   Powered by ColBERT |