Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native Geofencing Capabilities #356

Open
flodaniel opened this issue Jan 5, 2024 · 2 comments
Open

Native Geofencing Capabilities #356

flodaniel opened this issue Jan 5, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@flodaniel
Copy link

Hello,

I just discovered this project and am amazed! It is amazing.
Looking at the implementation of the geofencing, I can see that the carp_context_package relies on the location package and its onLocationChanged method. This means geofencing will drain much more battery than necessary as it could utilize the native capabilities of Android and iOS.
I was looking into other packages that allow my app to react to geofencing events if when the app is fully terminated (killed in task switcher) and this would only be possible if the native geofencing is used. From a study and research perspective this could allow a more granular start and stop behavior of a study to avoid draining the battery throughout the day.

Here is the android documentation: https://github.com/cph-cachet/carp.sensing-flutter/tree/version-0.40.x/apps/carp_mobile_sensing_app
And here is iOS: https://developer.apple.com/documentation/corelocation/monitoring_the_user_s_proximity_to_geographic_regions

@bardram
Copy link
Contributor

bardram commented Jan 18, 2024

Thanks for the input. We have been considering using the native geofencing API, but never came about to do this. But definitely on the todo list.

We need to find a suitable Flutter plugin that supports this, though. Any input on this?

@bardram bardram self-assigned this Jan 18, 2024
@bardram bardram added enhancement New feature or request question Further information is requested labels Jan 18, 2024
@flodaniel
Copy link
Author

I only found this one, which is not open source: https://pub.dev/packages/flutter_background_geolocation

There does not seem to be any other that correctly implements the native APIs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants