Hello @Abhay Chavan ,
Capturing a photo is not supported on iOS simulator, if you run your app on simulator, it will throw this exception. It's the limitation of Apple. You could debug the app on your iOS device for testing. It also needs some permissions, check the following keys in your Info.plist
:
<key>NSCameraUsageDescription</key>
<string>This app needs access to the camera to take photos.</string>
<key>NSMicrophoneUsageDescription</key>
<string>This app needs access to microphone for taking videos.</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>This app needs access to the photo gallery for picking photos and videos.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>This app needs access to photos gallery for picking photos and videos.</string>
For more details, refer to https://learn.microsoft.com/en-us/xamarin/essentials/media-picker?tabs=ios
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.