Skip to content

Commit

Permalink
Storage permissions on API33+ always return granted (#2582)
Browse files Browse the repository at this point in the history
* Storage permissions on API33+.

* Edit.

* Edit.
  • Loading branch information
davidbritch authored Oct 28, 2024
1 parent c05bbb3 commit 69a0fcc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/platform-integration/appmodel/permissions.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Permissions"
description: "Learn how to use the .NET MAUI Permissions class, to check and request permissions. This class is in the Microsoft.Maui.ApplicationModel namespace."
ms.date: 08/07/2024
ms.date: 10/28/2024
no-loc: ["Microsoft.Maui", "Microsoft.Maui.ApplicationModel"]
---

Expand Down Expand Up @@ -45,6 +45,9 @@ The following table uses ✔️ to indicate that the permission is supported and
| [StorageWrite](xref:Microsoft.Maui.ApplicationModel.Permissions.StorageWrite) | ✔️ ||||
| [Vibrate](xref:Microsoft.Maui.ApplicationModel.Permissions.Vibrate) | ✔️ ||||

> [!IMPORTANT]
> The [StorageRead](xref:Microsoft.Maui.ApplicationModel.Permissions.StorageRead) and [StorageWrite](xref:Microsoft.Maui.ApplicationModel.Permissions.StorageWrite) permissions will always return <xref:Microsoft.Maui.ApplicationModel.PermissionStatus.Granted> on Android API 33+. This is because the underlying Android `READ_EXTERNAL_STORAGE` and `WRITE_EXTERNAL_STORAGE` permissions are no longer available from API 33.
If a permission is marked as ❌, it will always return <xref:Microsoft.Maui.ApplicationModel.PermissionStatus.Granted> when checked or requested.

## Checking permissions
Expand Down

0 comments on commit 69a0fcc

Please sign in to comment.