remoorejr / cordova-plugin-camera-with-exif

Cordova Camera Plugin that will return an image as well as the EXIF data (including GPS location) on iOS and Android devices.
Apache License 2.0
38 stars 53 forks source link

GPS infos null #58

Open belhadjhaythem opened 2 years ago

belhadjhaythem commented 2 years ago

Hi,

Using version 1.5.1 of this plugin, and quasar 3 typescript based, i'm able to get some of the metadata, but not the gps.

{ "aperture": "2.0", "datetime": "2022:10:27 01:41:55", "exposureTime": "0.120003", "flash": "0", "focalLength": "3500/1000", "gpsAltitude": null, "gpsAltitudeRef": null, "gpsDateStamp": null, "gpsLatitude": null, "gpsLatitudeRef": null, "gpsLongitude": null, "gpsLongitudeRef": null, "gpsProcessingMethod": null, "gpsTimestamp": null, "iso": "807", "make": "motorola", "model": "moto g pro", "orientation": "0", "whiteBalance": "0" }

Cordova & Cordova android > 10.1.1

Here is my configuration :

      quality: 30,

      destinationType: Camera.DestinationType.FILE_URI,

      encodingType: Camera.EncodingType.JPEG,

      sourceType: Camera.PictureSourceType.CAMERA ,

      mediaType: Camera.MediaType.PICTURE,

      cameraDirection: Camera.Direction.BACK,

      correctOrientation: true

Any suggestions ?

nethaus commented 2 years ago

I can confirm, that the latest version of the plugin doesn't yield any GPS coordinates on Android. Switching to version 1.4.2 solved the problem for now.

belhadjhaythem commented 2 years ago

@nethaus Switching to 1.4.2 version products errors like error: package android.support.v4.content does not exist

belhadjhaythem commented 2 years ago

Afte correcting this issue related to AndoidX , the camera does not even launch.

michaeloki commented 1 day ago

@belhadjhaythem Are you still having issues with AndroidX? If this issue persists, you can check the logcat tab on Android Studio for debugging purposes.