Closed williambuchanan2 closed 1 year ago
Already fixed by https://github.com/dotnet/maui/pull/12914
Duplicate of #11275
We fixed it a few weeks ago and backported to net7, unfortunately it missed the release so will go out with the next servicing release.
One workaround is to set your app to target one version back: https://github.com/dotnet/maui/issues/11275#issuecomment-1400211776
Very unfortunate to not get this out sooner, I know.
Description
Using the camera in Maui doesn't seem to work due to permission issues. Using MediaPicker example from the Microsoft documents doesn’t work. Throws error as it tries to access storage.
Error: Microsoft.Maui.ApplicationModel.PermissionException: 'StorageWrite permission was not granted: Denied'
Note that if I don't request StorageWrite permission I get the following error:
Microsoft.Maui.ApplicationModel.PermissionException: 'You need to declare using the permission: android.permission.WRITE_EXTERNAL_STORAGE in your AndroidManifest.xml'
So, bit of a catch 22 situation...
Steps to Reproduce
Do exactly what this page shows:
https://learn.microsoft.com/en-us/dotnet/maui/platform-integration/device-media/picker
Android.Manifest entries:
Code:
Link to public reproduction project repository
?
Version with bug
6.0.312
Last version that worked well
Sounds like it has never worked, based on the number of people reporting it.
Affected platforms
Android, I was not able test on other platforms
Affected platform versions
Android api 31
Did you find any workaround?
No
Relevant log output