react-native-exify icon indicating copy to clipboard operation
react-native-exify copied to clipboard

Location Data Not Showing on Android Pixel 6 Pro

Open stharvey opened this issue 1 year ago • 1 comments

I haven't yet checked this on any other devices, but on my development device (Pixel 6 Pro, Android 14), I don't see location data in the returned EXIF data.

When uploading the same photo to an online EXIF viewer tool I do see the correct lat/lng

This is my code:

     const exifData = await readAsync(data.assets[0].uri);
     console.log("EXIF:", exifData);

This is the result: EXIF: {"ApertureValue": 1.78, "BrightnessValue": 9.36, "ColorSpace": 1, "ComponentsConfiguration": [365, 4], "Compression": 6, "Contrast": 0, "CustomRendered": 1, "DateTime": "2024:09:13 15:08:42", "DateTimeDigitized": "2024:09:13 15:08:42", "DateTimeOriginal": "2024:09:13 15:08:42", "DigitalZoomRatio": 1.52, "ExifVersion": [293, 4], "ExposureBiasValue": 0, "ExposureMode": 0, "ExposureProgram": 2, "ExposureTime": 0.000398, "FNumber": 1.85, "Flash": 16, "FlashpixVersion": [521, 4], "FocalLength": 6.81, "FocalLengthIn35mmFilm": 24, "GPSAltitudeRef": 0, "GPSTimeStamp": "00:00:00", "GPSVersionID": "", "ISOSpeedRatings": [281, 2], "ImageLength": 2268, "ImageWidth": 4032, "InteroperabilityIndex": "R98", "JPEGInterchangeFormat": 1272, "JPEGInterchangeFormatLength": 14008, "LensMake": "Google", "LensModel": "Pixel 6 Pro back camera 6.81mm f/1.85", "LightSource": 0, "Make": "Google", "MaxApertureValue": 1.78, "MeteringMode": 2, "Model": "Pixel 6 Pro", "Orientation": 1, "PixelXDimension": 4032, "PixelYDimension": 2268, "ResolutionUnit": 2, "Saturation": 0, "SceneCaptureType": 0, "SceneType": "?", "SensingMethod": 2, "Sharpness": 0, "ShutterSpeedValue": 11.3, "Software": "HDR+ 1.0.641377693zpb", "SubSecTime": "324", "SubSecTimeDigitized": "324", "SubSecTimeOriginal": "324", "SubjectDistance": 1.726, "SubjectDistanceRange": 2, "WhiteBalance": 0, "XResolution": 72, "YCbCrPositioning": 1, "YResolution": 72}

I'm using Expo + EAS. I have the same issue using Expo ImagePicker.

I have:

"android.permission.ACCESS_MEDIA_LOCATION"

I'm probably missing something obvious. Any suggestions?

stharvey avatar Sep 19 '24 16:09 stharvey

for all android devices above SDK 13+ its returning null for location exif due to privacy issues if anyone finds any soultion for expo or react native please let me know

ungaaaabungaaa avatar Feb 04 '25 10:02 ungaaaabungaaa