Hello all,
I have gone through these threads on this topic.
https://www.b4x.com/android/forum/threads/view-the-desktop-version-of-a-site-with-webview.108361/
https://www.b4x.com/android/forum/threads/webview-desktop-mode-problem.85401/#post-541491
This one doesn't seem to exist any more.
http://www.useragentstring.com/pages/Android Webkit Browser/
From Stackoverflow
https://stackoverflow.com/questions...view-to-view-desktop-site-and-not-mobile-site
I tried this code with various useragent strings
None of them worked.
This site shows a huge popup; you can't see the X button to kill it.
In Chrome browser, you can change to Desktop site mode and kill it.
Any suggestions ?
Regards,
KPS
I have gone through these threads on this topic.
https://www.b4x.com/android/forum/threads/view-the-desktop-version-of-a-site-with-webview.108361/
https://www.b4x.com/android/forum/threads/webview-desktop-mode-problem.85401/#post-541491
This one doesn't seem to exist any more.
http://www.useragentstring.com/pages/Android Webkit Browser/
From Stackoverflow
https://stackoverflow.com/questions...view-to-view-desktop-site-and-not-mobile-site
I tried this code with various useragent strings
B4A:
Dim wv As WebViewSettings
Log(wv.getUserAgentString(WebView1))
'This is the Log output
'Mozilla/5.0 (Linux; Android 7.0; Redmi Note 4 Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/84.0.4147.111 Mobile Safari/537.36
wv.setUseWideViewPort(WebView1,True)
wv.setLoadWithOverviewMode(WebView1,True)
WebView1.JavaScriptEnabled=True
wv.setSupportZoom(WebView1,True)
'wv.setUserAgentString(WebView1,"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0")
'wv.setUserAgentString(WebView1,"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Safari/530.17")
'wv.setUserAgentString(WebView1,"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.4) Gecko/20100101 Firefox/4.0")
'wv.setUserAgentString(WebView1,"Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0")
'wv.setUserAgentString(WebView1,"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Safari/602.1.50")
'wv.setUserAgentString(WebView1,"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36")
'wv.setUserAgentString(WebView1,"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1")
'wv.setUserAgentString(WebView1,"Mozilla/5.0 (Linux; U; Android 2.1-update1; de-de; HTC Desire 1.19.161.5 Build/ERE27) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17")
'wv.setUserAgentString(WebView1,"")
wv.setUserAgentString(WebView1,"Mozilla/5.0")
WebView1.LoadUrl("http://trichyayyappan.com")
None of them worked.
This site shows a huge popup; you can't see the X button to kill it.
In Chrome browser, you can change to Desktop site mode and kill it.
Any suggestions ?
Regards,
KPS