PermissionCallbacks.PermissionDeniedAndDontAskAgain

Parameters

value Permission name.

Description

Triggered when the user chooses Deny And Don't Ask Again for a permission request or denies the permission twice on newer Android versions, or the operating system determines that it should not be requested again.

If you do not subscribe to this event, Unity triggers PermissionCallbacks.PermissionDenied as a fallback. On Android versions 12 and newer, it's recommended to use PermissionCallbacks.PermissionDenied only as PermissionCallbacks.PermissionDeniedAndDontAskAgain might show different behavior.

Additional resources: Permission.ShouldShowRequestPermissionRationale


Did you find this page useful? Please give it a rating: