Appreciate if someone can advise. I have the following code. it is able to handle SSL Error. When the URL is loaded, the WebView does not pop up the "Allow" or "Block" for the Camera and Microphone for user acceptance.
Was expecting a message like this "allow" and "block" to appear.
B4X:
Sub Process_Globals
Private rp As RuntimePermissions
End Sub
Sub Globals
Private WebView1 As WebView
Private we As WebViewExtras
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("1")
rp.CheckAndRequest(rp.PERMISSION_CAMERA)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
If Result Then
rp.CheckAndRequest(rp.PERMISSION_RECORD_AUDIO)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
If Result Then
we.Initialize(WebView1)
Dim client As DefaultWebViewClient
client.Initialize("client")
we.SetWebViewClient(client)
WebView1.LoadUrl("https://192.168.0.52:8081/join?room=test&name=test2")
End If
End If
End Sub
Sub client_ReceivedSslError(SslErrorHandler1 As SslErrorHandler, SslError1 As SslError)
Log(SslError1)
SslErrorHandler1.Proceed
End Sub
Was expecting a message like this "allow" and "block" to appear.
Last edited: