I got a strange problem with the Webview, I have a app with that code:
but in some case I got a partial screen, that depend I think of the version of SDK or the Webkit version
Won't work: Mozilla/5.0 (Linux; Android 7.0; SM-G930F Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/58.0.3029.83 Mobile Safari/537.36 (bad.png)
Work: Mozilla/5.0 (Linux; Android 4.4.2; Lead 3 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36 (ok.png)
Any idea??
Bad.png Ok.png
B4X:
WebViewExtra1.Initialize(WebView1)
WebView1.JavaScriptEnabled = True
WebView1.ZoomEnabled = False
WebSettings.setAppCacheEnabled(WebView1,True)
WebSettings.setSavePassword(WebView1,True)
WebSettings.setDOMStorageEnabled(WebView1,True)
Dim WebChromeClient1 As DefaultWebChromeClient
WebChromeClient1.Initialize("WebChromeClient1")
WebViewExtra1.SetWebChromeClient(WebChromeClient1)
WebViewExtra1.addJavascriptInterface(WebView1, "B4A")
WebViewExtra1.JavaScriptEnabled = True
WebView1.LoadUrl("https://app.planisport.com")
but in some case I got a partial screen, that depend I think of the version of SDK or the Webkit version
Won't work: Mozilla/5.0 (Linux; Android 7.0; SM-G930F Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/58.0.3029.83 Mobile Safari/537.36 (bad.png)
Work: Mozilla/5.0 (Linux; Android 4.4.2; Lead 3 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36 (ok.png)
Any idea??
Bad.png Ok.png
Attachments
Last edited: