PermissionDeniedAndDontAskAgain
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.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Event
- Namespace: UnityEngine.Android
- Assembly: UnityEngine.AndroidJNIModule
public event Action<string> PermissionDeniedAndDontAskAgain
Remarks
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 might show different behavior.
PermissionCallbacks.PermissionDeniedAndDontAskAgainAdditional Resources: Permission.ShouldShowRequestPermissionRationale