-
Notifications
You must be signed in to change notification settings - Fork 3
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
Optional background tracking taking 5 random times, instead of 5 regular times per day #127
Optional background tracking taking 5 random times, instead of 5 regular times per day #127
Conversation
Important for iOS:
|
0f4b127
to
080fd34
Compare
The idea of using a unique tag is that when the user disables the background tracking in the settings page, pending tasks could be canceled by using: |
Another option is to just |
In the scenario where various tasks are concurrently running in the background, employing |
I've added the setup for iOS but I can't test it without a device
Okey, so the daily task is still executed, but if there's no permission enabled, we just skip it and don't schedule the 5 tasks for the day? |
I was considering halting all background tracking tasks if the user disables that option in the settings page. However, if you believe it's more efficient to keep the scheduler running and simply refrain from scheduling any tasks when the option is disabled, feel free to proceed with that approach. |
We can halt all tracking tasks, including the one with tag 'scheduleDailyTasks', but then I don't see the performance improvement of cancelling by tag instead of |
Okay! We should only need extra care if in the future we add any other kind of task that is not related to background tracking, and only cancel these. |
fixes #9