Hello all,
I have a problem with runtime permissions in B4XPages app.
When executing the following command,
code jumps to the sub
but it never returns back.
Any suggestion?
I have a problem with runtime permissions in B4XPages app.
When executing the following command,
B4X:
'PERMISSION_ACCESS_FINE_LOCATION -------------------------------------
rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCATION)
Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean)
''This code is never reached ------
Log("PERMISSION_ACCESS_FINE_LOCATION " & Result)
If Result = False Then
MsgboxAsync("Geolocation not allowed!", "Alert...")
End If
B4X:
Sub Activity_PermissionResult (Permission As String, Result As Boolean)
B4XPages.Delegate.Activity_PermissionResult(Permission, Result)
End Sub
but it never returns back.
Any suggestion?