Closed vsfeedback closed 4 months ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Duplicate of #23197
This issue has been moved from a ticket on Developer Community.
[severity:I'm unable to use this version] Hi,
Maui .Net 8 iOS MediaPicker.CapturePhotoAsync issue returns null after user presses USE PHOTO on apple device.
This does however work perfectly on Windows and Android.
Code snippet: public async Task<List> TakePic(ContentPage page)
{
var Photos = new List();
Photo photo = new Photo();
try { await page. DisplayAlert("Debug", $"IsCaptureSupported {MediaPicker.Default.IsCaptureSupported}", "Ok"); if (MediaPicker.Default.IsCaptureSupported) { await page. DisplayAlert("Debug", $"taking pic", "Ok");
var photoFile = await MediaPicker.Default.CapturePhotoAsync(new MediaPickerOptions { Title = "Please take a photo" });
if (photoFile != null) //iOS returns null here?
Installed Packages:
I am getting the same results on iPad Air 2 iOS 15.8.2 and iPhone 8 iOS 16.3.1
Original Comments
Feedback Bot on 6/23/2024, 06:41 PM:
(private comment, text removed)
Original Solutions
(no solutions)