xinthink / flt_worker

Schedule & run Dart code in the background on both Android & iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reduce time interval

junaidgoharhashmi opened this issue · comments

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.