# 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.

## Definition

* **Type:** Event
* **Namespace:** [UnityEngine.Android](/engine/6000.5/script-reference/unityengine/android.md)
* **Assembly:** UnityEngine.AndroidJNIModule

> **Warning:**
>
> **Deprecated.** Unreliable. Query ShouldShowRequestPermissionRationale and use PermissionDenied event.

```csharp
public event Action<string> PermissionDeniedAndDontAskAgain
```

### Remarks

If you do not subscribe to this event, Unity triggers [PermissionCallbacks.PermissionDenied](/engine/6000.5/script-reference/unityengine/android/permissioncallbacks/permissiondenied.md) as a fallback. On Android versions 12 and newer, it's recommended to use [PermissionCallbacks.PermissionDenied](/engine/6000.5/script-reference/unityengine/android/permissioncallbacks/permissiondenied.md) only as `PermissionCallbacks.PermissionDeniedAndDontAskAgain` might show different behavior.

Additional Resources: [Permission.ShouldShowRequestPermissionRationale](/engine/6000.5/script-reference/unityengine/android/permission/shouldshowrequestpermissionrationale.md)
