I am building a SIP/VOIP app but a can't seem to get the run time permissions right.
I added this to the Activity_Create
in the Activity_PermissionResult
Result :
I get an error telling me that I need the android.permission.USE_SIP
Thanks
I added this to the Activity_Create
B4X:
rp.CheckAndRequest(rp.PERMISSION_USE_SIP)
in the Activity_PermissionResult
B4X:
Log($"Permission: ${Permission} Result: ${Result}"$)
If Result Then
If SIP.IsInitialized = False Then
If SIP.IsSipSupported = False Or SIP.IsVoipSupported = False Then
ToastMessageShow("unsupported SIP", True)
Else
SIP.Initialize2("SIP", "sip:[email protected]" , "55555")
SIP.Register
End If
End If
End If
Result :
B4X:
Permission: android.permission.USE_SIP Result: false
Thanks