-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
area-essentials-mediapickeri/regressionThis issue described a confirmed regression on a currently supported versionThis issue described a confirmed regression on a currently supported versionplatform/iosregressed-in-10-preview4s/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Description
Description
Not sure if I missed the memo and I need to do something else to make this work?
I have just upgraded one of my IOS MAUI app to .Net 10. I now find my users are blocked from accessing the Camera via the App despite being asked to grant permission and then granting that permission. Checking the IOS device Settings Page indicates Permission for the Camera has been granted
Here is my Code
async void OnCapturePhotoClicked(object sender, EventArgs e)
{
try
{
FileResult file = await MediaPicker.CapturePhotoAsync();
if (file != null)
{
await AddJobImageAttachment(file);
}
}
catch (UnauthorizedAccessException)
{
await DisplayAlertAsync("Camera Access", "Camera access is not currently allowed", "OK");
}
}
In the plist file I have
NSCameraUsageDescription
Job Image Camera
NSPhotoLibraryUsageDescription
Job Image Photo Library
Also happens on the Simulator for iPhone 16 IOS 18.4
My 9.0.10 version of one of my similar apps still works.
Steps to Reproduce
- Create a new MAUi App
- Add the Plist enties above for the IOS entries
- Add a button and Add my above code
- Run the Simulator
- Press the button
- Agree to permission
- Fails with UnauthorisedAccessException
Link to public reproduction project repository
No response
Version with bug
10.0.50
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
9.0.10 SR1
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
No work around
Relevant log output
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-essentials-mediapickeri/regressionThis issue described a confirmed regression on a currently supported versionThis issue described a confirmed regression on a currently supported versionplatform/iosregressed-in-10-preview4s/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working