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

Background location and foreground services clarification and suggestion #994

Open
PistonShot1 opened this issue Sep 18, 2024 · 0 comments

Comments

@PistonShot1
Copy link

Problem and clarification
Before I would like to suggest, to clarify the term support for background location here , is defined not clearly.

From android doc def : "An app is running in the background if none of its activities are visible to the user, and the app isn't running any foreground services."

In other words, this package is currently utilising a wrapper over foreground service and the location will not be send or recorded when the app is not currently active, i.e works only when still visible ( not exactly what background means)

can be found at here , packages/location/android/src/main/AndroidManifest.xml and here packages/location/android/src/main/java/com/lyokone/location/FlutterLocationService.kt

Suggestion

  • Is there any plans to create support over periodic location tracking for background using wrapper over FusedLocationProvider API that has the capability of sending location periodically in an hour at background? reference
    Because currently I am using Workmanager to schedule, but I believe it does not work and doesn't compute the dart code location function call over preiodic timer

Did found this alternative package, link. However it has its own 3rd party and propreitary licensing, that I am not fully support of.

Hence came up if this package would have support for background location instead. Would be willing to contribute on this aspect, but unsure of the current implementation is capable of supporting it.

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

No branches or pull requests

1 participant