You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jlmarino (via GitHub)" <gi...@apache.org> on 2026/04/30 14:50:25 UTC
Re: [I] Android 14 - Exif not being returned from the camera [cordova-plugin-camera]
jlmarino commented on issue #916:
URL: https://github.com/apache/cordova-plugin-camera/issues/916#issuecomment-4353488034
To get this to work (reading geotag EXIF when selecting photo from library), I also had to request the following alongside ACCESS_MEDIA_LOCATION:
- READ_MEDIA_IMAGES and READ_MEDIA_VISUAL_USER_SELECTED for Android 14+
- READ_MEDIA_IMAGES for 13
- READ_EXTERNAL_STORAGE for versions lower than 13.
And it required adding these as uses-permission entries to the config.xml, similar to as [described here](https://stackoverflow.com/a/30043686)
Otherwise EXIF data _was_ returned, however specific numeric data within the geotag was NaN (i.e. the degrees, minutes, seconds for GPSLatitude and GPSLongitude were all NaN).
And one further complexity to be aware of is that Google Play Store has been [very strict lately](https://support.google.com/googleplay/android-developer/answer/15800983?hl=en) about apps with READ_MEDIA_IMAGES permissions.
Maybe there is a better way that doesn't require READ_MEDIA_IMAGES, but this was the only way that this reliably worked to read geotagged images from library for me.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org