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

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,755 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,959 questions
{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

    0 comments No comments