Skip to content

Fixed iOS photo GPS information #4393

Open
gabriel-bolbotina wants to merge 4 commits intomasterfrom
fix/ios-photo-geolocation
Open

Fixed iOS photo GPS information #4393
gabriel-bolbotina wants to merge 4 commits intomasterfrom
fix/ios-photo-geolocation

Conversation

@gabriel-bolbotina
Copy link
Contributor

Modified the image picker logic for gallery and camera inputs.

  • the camera logic use UIImagePickerController
  • the gallery picker now uses PHPickerViewController instead of UIImagePickerController API. This controller preserves all the EXIF metadata from photos, thus the GPS information is kept.

Added IOSGalleryPickerDelegate, a PHPickerViewControllerDelegate implementation that retrieves the original image metadata via NSItemProvider, which preserves GPS data and calls back into the Qt layer on the main thread

Tested on iOS 26 using the clone of this project

Added PHAsset handling to retrieve gps data
Got rid of deprecated API and used PHPickerViewController
@Withalion Withalion linked an issue Mar 23, 2026 that may be closed by this pull request
@github-actions
Copy link

📦 Build Artifacts Ready

OS Status Build Info Workflow run
macOS Build 📬 Mergin Maps 65651 dmg Expires: 22/06/2026 #6565
linux Build 📬 Mergin Maps 65761 x86_64 Expires: 22/06/2026 #6576
win64 Build 📬 Mergin Maps 57601 win64 Expires: 22/06/2026 #5760
Android Build 📬 Mergin Maps 787651 APK [arm64-v8a] Expires: 22/06/2026 #7876
Android Build 📬 Mergin Maps 787611 APK [armeabi-v7a] Expires: 22/06/2026 #7876
iOS Build 📬 Build number: 26.03.881611 #8816

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

Successfully merging this pull request may close these issues.

Mobile is not pre-filling gps info from gallery picture

1 participant