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

Reduce time interval #6

Open
junaidgoharhashmi opened this issue Nov 9, 2020 · 2 comments
Open

Reduce time interval #6

junaidgoharhashmi opened this issue Nov 9, 2020 · 2 comments

Comments

@junaidgoharhashmi
Copy link

how to reduce time interval from 15 to 1 minute?

@xinthink
Copy link
Owner

Sorry for replying late.
The time interval is decided by the OS:
on Android, the minimum interval is 15 minutes: https://developer.android.com/reference/androidx/work/PeriodicWorkRequest
on iOS, there's no guaranteed interval: https://developer.apple.com/documentation/backgroundtasks/bgtaskrequest/3142244-earliestbegindate

If you have to do something every 1 minute, background tasks might not be the right tool. You may consider using a timer.

@junaidgoharhashmi
Copy link
Author

junaidgoharhashmi commented Nov 22, 2020 via email

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

2 participants