Skip to content

Commit

Permalink
Storage permissions on API33+.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbritch committed Oct 28, 2024
1 parent c05bbb3 commit 130a772
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 @@ -47,6 +47,9 @@ The following table uses ✔️ to indicate that the permission is supported and

If a permission is marked as ❌, it will always return <xref:Microsoft.Maui.ApplicationModel.PermissionStatus.Granted> when checked or requested.

> [!IMPORTANT]
> The <xref:Microsoft.Maui.ApplicationModel.Permissions.StorageRead> and <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.
## Checking permissions

To check the current status of a permission, use the <xref:Microsoft.Maui.ApplicationModel.Permissions.CheckStatusAsync%2A?displayProperty=nameWithType> method along with the specific permission to get the status for. The following example checks the status of the [`LocationWhenInUse`](xref:Microsoft.Maui.ApplicationModel.Permissions.LocationWhenInUse) permission:
Expand Down

0 comments on commit 130a772

Please sign in to comment.