-
Notifications
You must be signed in to change notification settings - Fork 123
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
Not working in WorkManager #27
Comments
The tracked is based on the |
in doWork() function you can make BroadcastReceiver. Intent intent = new Intent(context, LocationBroadcastReceiver.class); and call the library functions in BroadcastReceiver hope it will work .. i have not tried but i have seen in some examples |
WorkManager is used for battery-friendly background tasks, and it is the normal and only clean way to run background processes. If you want to "track" your location, it mainly makes sense to do so in the background. So support for this should be very high priority. |
I am using this code:
in the doWrok() function of WorkManager.
But this code works in the Service.
The text was updated successfully, but these errors were encountered: