Android Question Re-request permission

red30

Well-Known Member
Licensed User
Longtime User
I am requesting several permissions to use bluetooth.
B4X:
    Permissions = Array("android.permission.BLUETOOTH_SCAN", "android.permission.BLUETOOTH_CONNECT", rp.PERMISSION_ACCESS_FINE_LOCATION)
    For Each per As String In Permissions
        rp.CheckAndRequest(per)
        Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean)
        If Result = False Then
            ToastMessageShow("No permission: " & Permission, True)
            Return
        End If
    Next
In this case, if the user clicked "prohibit" at least one permission, then when the program is called again, the user does not receive a second window with a request for permission. That is, it turns out that if the user accidentally clicked "prohibit", then he will not receive a window with a repeated request for permission again?
How can I fix this problem?
The note:
I noticed (for this example) that if you click "prohibit" 1 time, then you can call the request again, but if you click "prohibit" 2 times, then the query window does not appear anymore.
 
Top