Missing GPS Data in EXIF for Captured Photos in FlutterFlow

Actions & Logic

I've added a feature to my app that allows users to capture photos for documenting specific events. I'm using FlutterFlow's built-in camera functionality to take the pictures. While I've ensured that permissions are granted for Camera, Location, and Photo Library, the EXIF data in the APP1 marker segment of the captured images does not include GPS information. Is this behavior intentional, or is there something I might have overlooked?

What have you tried so far?

1) The app requests permission to use a) Camera, b) Location (level "while using the app"), c) Photo Library. If ok, then
2) it uses the Upload media to Firebase with the Media Source+Camera to get the camera picture.
3) In a custom action, I add additional meta data to complete the Firestore record.
4) The image then gets added to the Firestore database and to the device's photo library (which is done through custom code).

In step 4), I'm using the EXIF package to read the structure of APP1 marker and to list all primary, EXIF and GPS IFDs before writing the image bytes to the stores. GPS data is not included, however (neither the GPS primary IFD nor sub IDs). In addtition, I've also added the permissions in the FlutterFlow app settings, and I can verify the presence of the respective keys in the info.plist for iOS and the manifest for Android.

The camera feature is not very well documented, so it's not clear to me if the omission of this type of data is by design or if I have overlooked an important piece of configuration.

Did you check FlutterFlow's Documentation for this topic?
Yes
1
1 reply