-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[ANDROID] Requesting Read-Write External Storage in .net 7 not working #14729
Comments
Can confirm. Under further investigation. Repro sample: AppMAUI.Issue14729.PermissionsExternalStorage.zip
|
API | App | Permissions | |
---|---|---|---|
33 | |||
32 |
net6.0
API | App | Permissions | |
---|---|---|---|
33 |
There is this issue: #12857 We added this code: if (!OperatingSystem.IsAndroidVersionAtLeast(33))
await Permissions.EnsureGrantedAsync<Permissions.StorageWrite>(); Maybe we need to make the request do nothing on 33+ and just return granted always?
|
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process. |
Having the same issue, very annoying. Was hoping to let users backup their database to wherever they wanted but seems to be near impossible to get working on .NET 7 against API 33 at the moment. |
|
Hi @tataelm , I know this may not be ideal for you, but I think this has been fixed in .NET 8. |
Android 14 .net 8 |
This is still an issue - it returns denied for both StorageRead and StorageWrite on Android 14. Though on Android now accessing the file system should mean you go through Storage Access Framework and and the MediaStore (which require platform specific setup that we've had to implement ourselves) |
Description
"android.permission.READ_EXTERNAL_STORAGE" and "android.permission.WRITE_EXTERNAL_STORAGE" can't be requested. I have tried adding it under AndroidManifest.xml and adding it as assembly under MainActivity.cs but no use.
Besides "ShouldShowRationale" not getting triggered, I can't change the permissions manually neither because there is none.
Steps to Reproduce
Link to public reproduction project repository
none
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android api 33
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: