Skip to content

[iOS] MAUI Essentials MediaPicker.CapturePhotoAsync / CaptureVideoAsync causes modal page to dismiss unexpectedly #31075

@BenReierson

Description

@BenReierson

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

Metadata

Metadata

Labels

area-essentialsEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App Infoarea-essentials-mediapickeri/regressionThis issue described a confirmed regression on a currently supported versionplatform/iosregressed-in-10-preview4s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions