apache / apache/cordova-plugin-camera

GeoLocation information missing on iOS

Open
#887 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
976
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

# Bug Report

## Problem

### What is expected to happen?
GeoLocation information is included in the EXIF data.

### What does actually happen?
GeoLocation information is dropped.

## Information

In function:
- (void)imagePickerControllerReturnImageResult
Reverting back to using self.data on line 812:
CGImageDestinationRef destinationImage = CGImageDestinationCreateWithData((__bridge CFMutableDataRef)self.data, sourceType, 1, NULL);
Resolved the issue for us.

Our company policy prevents us from pushing the change back to the open source project.

### Command or Code

### Environment, Platform, Device

### Version information

cordova-plugin-camera: 7.0.0
"cordova-ios": "^6.3.0"

## Checklist

- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above

Contributor guide

Open the contributing guide

Research direction

Start in the iOS implementation at imagePickerControllerReturnImageResult, around the reported line 812, and compare the image destination's data source with self.data. Reproduce the photo capture and inspect its EXIF metadata; done means GeoLocation information is preserved in the returned image.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, objective-c
Domain
mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.