Open ynnob opened 1 year ago
Additional info: It seems like deactiviating the "location" setting in the camera does not deactivate the location tracking. The geo data still gets added to the exif-metadata of the image.
Handling the gps permissions manually and then setting saveGPSLocation
to true
does not geotagg the images even tho the app has full permissions.
I also came across this issue. I do not display the location-button in my app, but set saveGpsLocation to True:
CameraAwesomeBuilder.awesome(
saveConfig: SaveConfig.photo(
exifPreferences: ExifPreferences(saveGPSLocation: true),
),
topActionsBuilder: (state) {
return AwesomeTopActions(
state: state,
children: [],
);
},
...
)
On Android devices, the photos taken this way contain GPS information. On iOS however, this information is missing.
I also came across this issue. I do not display the location-button in my app, but set saveGpsLocation to True:
CameraAwesomeBuilder.awesome( saveConfig: SaveConfig.photo( exifPreferences: ExifPreferences(saveGPSLocation: true), ), topActionsBuilder: (state) { return AwesomeTopActions( state: state, children: [], ); }, ... )
On Android devices, the photos taken this way contain GPS information. On iOS however, this information is missing.
i have no hope that this will get fixed soon. It get's even worse when the gps signal is poor or not existent like in a tunnel. The preview and the process of taking a picture will wait a long time for the gps signal.
We now deactivated the gps tracking by this plugin and we add the gps position to the images exif data in a background task (fire and forget style).
Steps to Reproduce
-> iOS Application with NSLocationWhenInUseUsageDescription permission set in the info.plist Open a Camera Widget with
CameraAwesomeBuilder.custom
constructor and pass the config that enables gps on openAs the content for the layout use
AwesomeCameraLayout
and add theAwesomeLocationButton(state: state)
to the widget.Expected results
If this is the first time the camera is opened and no gps permissions were previously requested i expect the application to ask the user for permissions. if the user declines the GPS-Permission the location icon should change to the deactivated state. If the user confirms the permissions the icon should indicate that locations are enabled. On Android this is how CamerAwesome functions.
Actual results
On iOS however the icon does not respond to changes if the location permission gets denied the icon is still active and will not respond to any actions. Furthermore while opening the camera the first time with the config above, the permission request is not even triggered. The first time it will get triggered is when deactivating the gps wia the AwesomeLocationButton.
Is there a way to use a custom button and set these settings manually so i canhandle the permission request and the UI updates. Because even if this will work on iOS there is no way to intercept the request if the location settings are tunred off completly in the iOS settings. Normally this would promt an info for the user and open the settings menu.
About your device
Your flutter version
CamerAwesome Version
2.0.0-dev.1