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

Notify user in the background if something is interfering with location tracking #55

Open
eirikurn opened this issue Apr 11, 2020 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@eirikurn
Copy link
Member

There are a few things that can cause tracking to fail without the user perhaps realizing it.

This is especially tricky on Android since it has a foreground service and notification which indicates that everything is working, even though something is broken.

@eirikurn
Copy link
Member Author

Maybe the best solution is to create a scheduled task that runs every few days and checks for issues. If an issue is detected, it could post a local notification, telling the user to open the app to restart tracking.

It can check if the app still has location access and if location services are turned on. It can also check if there are any new location updates in the previous X hours.

@eirikurn
Copy link
Member Author

By checking on recent location updates, this could catch and address #44

This could be more difficult to implement on iOS. As I understand it, scheduled tasks only run when iOS decides it should. And it only runs scheduled tasks for apps that the user is actively using.

Maybe background location apps can run scheduled tasks more often, or we can use local notifications somehow.

@eirikurn
Copy link
Member Author

Another idea is to make the background location process ping the server every few hours.

The server can track the timestamps of the latest ping, and send push notifications to those devices that haven't pinged for some time.

@eirikurn eirikurn added the help wanted Extra attention is needed label Apr 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant