flt_worker icon indicating copy to clipboard operation
flt_worker copied to clipboard

Reduce time interval

Open junaidgoharhashmi opened this issue 4 years ago • 2 comments

how to reduce time interval from 15 to 1 minute?

junaidgoharhashmi avatar Nov 09 '20 06:11 junaidgoharhashmi

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.

xinthink avatar Nov 22 '20 05:11 xinthink

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.

junaidgoharhashmi avatar Nov 22 '20 07:11 junaidgoharhashmi