使用Cordova-plugin-camera-with-exif的版本1.5.1和基于类星体3的typescript,当从用cordova捕获的图像中提取exif数据时,我能够得到一些元数据,但不能得到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 机器人〉10.1.1**
PS:我的设备已启用GPS。
以下是我的配置:
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
我我错过了什么?
1条答案
按热度按时间dluptydi1#
在Android中,我们需要激活相机设置中保存位置功能。要恢复,有2个权限。
更多信息:https://support.google.com/photos/answer/9921876#zippy=%2Chtc-devices%2Cmotorola-devices%2Cios-devices