I'm using Wiki received error when I tried to catch error when address not resolved or not reachable when internet disconnected , I can't catch that and error event ,
I tried the following event but they didn't work and nothing catched
<<<<
any solutions????
I tried the following event but they didn't work and nothing catched
B4X:
Private Sub WebkitWebView1_ReceivedError2 (WebResourceRequest1 As WebkitWebResourceRequest, WebResourceError As WebkitWebResourceError) 'Works from API level 23 and above. WebViewClient required.
Log("ReceivedError")
offline=True
' Log(WebResourceRequest1.h)
Log(WebResourceError.Description)
Log(WebResourceError.ErrorCode)
'net::ERR_CONNECTION_ABORTED
'net::ERR_NAME_NOT_RESOLVED
End Sub
Private Sub WebkitWebView1_ReceivedError (WebResourceRequest1 As WebkitWebResourceError, WebResourceError As WebkitWebResourceError) 'Works from API level 23 and above. WebViewClient required.
Log("ReceivedError2")
offline=True
' Log(WebResourceRequest1.h)
Log(WebResourceError.Description)
Log(WebResourceError.ErrorCode)
'net::ERR_CONNECTION_ABORTED
'net::ERR_NAME_NOT_RESOLVED
End Sub
any solutions????