Android Question (Solved) Notifications permission with targetSdkVersion = 33 crash

hanyelmehy

Active Member
Licensed User
Longtime User
i use this example
Notifications permission with targetSdkVersion = 33
i use it in that way
B4X:
Sub Activity_Create(FirstTime As Boolean)
    Activity.LoadLayout("Bar1")
    Wait For (CheckAndRequestNotificationPermission) Complete (HasPermission As Boolean)
    If HasPermission = False Then
        Log("no permission")
    End If
End Sub
in relase the app crash when first time ask for premission (it show permission message then close) ,second run work normaly
no error message shown

Solved :the issue that i forget to add RunTimePERMISSIONs lib ,The strange thing is that the B4A IDE did not show a missing library error.
Thanks for any help
 
Last edited:
Top