flt_worker
flt_worker copied to clipboard
Reduce time interval
how to reduce time interval from 15 to 1 minute?
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.
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.