hello
I am using the checkandrequest function to add a permission
I am using b4xpages (so this is not an activity)
to bypass the issue, I removed the "wait for". The app works (without waiting for the user's choice)
removing the "wait for" it's OK for me, I am asking if something is still wrong and I should be careful
thank you
I am using the checkandrequest function to add a permission
I am using b4xpages (so this is not an activity)
checkandrequest:
' this is a B4Xpage
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
Dim PR As RuntimePermissions
PR.CheckAndRequest(PR.PERMISSION_SEND_SMS)
'here below the code stops executing - as this is not an activity (?)
'Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
' if I use this (as I am using a b4xpage)
Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean)
'....NOPE, same issue: the code stops executing
a=a+1 'this code in never executed
end sub
to bypass the issue, I removed the "wait for". The app works (without waiting for the user's choice)
removing the "wait for" it's OK for me, I am asking if something is still wrong and I should be careful
thank you
Last edited: