Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage permissions on API33+ always return granted #2582

Merged
merged 3 commits into from
Oct 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading