webview refresh page (and css, js) by javascript b4i

webview has inside a cache, as every browser.

For b4i I suggest:

B4X:
Sub refreshwebview
   Dim no As NativeObject=webview1
   no.RunMethod("stringByEvaluatingJavaScriptFromString:", Array("window.location.reload();"))
End Sub

Nativeobject it for iOS what javaobject is for Android.

However I'd not forget the html side, writing inside meta tags:

B4X:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
 
Top