Maui MediaPicker.Default.CapturePhotoAsync windows doesn't display camera

Grant Schaffer 25 Reputation points
2024-04-30T16:15:24.1733333+00:00

When I run the app is the VS 2022 on Windows 10 the MediaPicker.Default.CapturePhotoAsync method displays the camera and allows me to capture a photo.

When the app is published and installed on Windows 10 the MediaPicker.Default.CapturePhotoAsync method doesn't display the camera and sends me a bogus image filename.

I have a looked for a permission setting but it doesn't seem to be a requirement for Windows apps.

The MediaPicker.Default.CapturePhotoAsync method also works great in iOS and Android.

How can I get the MediaPicker.Default.CapturePhotoAsync method to work on a published Windows app

Developer technologies | .NET | .NET MAUI
Windows for business | Windows Client for IT Pros | User experience | Other
{count} vote

1 answer

Sort by: Most helpful
  1. Grant Schaffer 25 Reputation points
    2024-04-30T16:26:22.0733333+00:00

    When I run the app as Administrator the MediaPicker.Default.CapturePhotoAsync method works


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.