Xamarin.MediaGallery
Xamarin.MediaGallery copied to clipboard
GPS metadata of images taken with the CapturePhotoAsync method is set to 0.
Description
Images taken using the CapturePhotoAsync method do not contain GPS information.
The info.plist describes the permissions for using the camera and location information.
I am not familiar with development on iOS. I don't know if the plugin is the cause. Any advice would be appreciated.
Expected behavior
Latitude and longitude of the shooting location are included in the meta data.
Steps to reproduce the behavior
if (!MediaGallery.CheckCapturePhotoSupport())
return;
var status = await Permissions.RequestAsync<Permissions.Camera>();
if (status != PermissionStatus.Granted)
return;
using (var file = await MediaGallery.CapturePhotoAsync())
{
var stream = await file.OpenReadAsync();
var exif = ExifReader.ReadJpeg(stream);
}
Screenshots or Videos

Configuration
- Device: iPhone 13 mini
- OS Version: 15.6
- Plugin Version: 2.1.1
- Framework: Xamarin.Forms