-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
area-essentialsEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App InfoEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App Infoarea-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
On iOS, when invoking MediaPicker.CapturePhotoAsync() or CaptureVideoAsync() from within a modal page (e.g., one pushed using Navigation.PushModalAsync()), the modal page is dismissed immediately after the native camera UI is closed — regardless of whether the photo/video is actually captured or cancelled.
This appears to be unintended behavior, as no manual dismissal is performed in app code, and it only occurs after interacting with the system camera interface.
Steps to Reproduce
1. Create a new .NET MAUI app.
2. Navigate to a page modally using Navigation.PushModalAsync(new CapturePage()).
3. In the modal page, call await MediaPicker.CapturePhotoAsync() or CaptureVideoAsync().
4. After the camera interface closes (with or without capturing), observe that the modal page is dismissed automatically.
Link to public reproduction project repository
No response
Version with bug
10.0.0-preview.6
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
It's possible to push a temporary modal page just to let it be dismissed, but that's obviously undesirable.
Relevant log output
Copilot
Metadata
Metadata
Assignees
Labels
area-essentialsEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App InfoEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App Infoarea-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
Type
Projects
Status
Done