-
Notifications
You must be signed in to change notification settings - Fork 8
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
Comments
Sorry for replying late. If you have to do something every 1 minute, background tasks might not be the right tool. You may consider using a timer. |
Thanks for answeringI think timer doesn't work when app destroy from background but background service still working even app destroy from background.That's why I am searching background service.I am stuck on it. Your help is really appreciated.
Sent from Yahoo Mail on Android
On Sun, Nov 22, 2020 at 10:37 AM, Yingxin Wu<[email protected]> wrote:
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
how to reduce time interval from 15 to 1 minute?
The text was updated successfully, but these errors were encountered: