Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Location Data Not Showing on Android Pixel 6 Pro #6

Open
stharvey opened this issue Sep 19, 2024 · 0 comments
Open

Location Data Not Showing on Android Pixel 6 Pro #6

stharvey opened this issue Sep 19, 2024 · 0 comments

Comments

@stharvey
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant