Asfak Saiyed
Sep 3, 2018 · 1 min read

I have not tried accurately for PeriodicWorkRequest but it should repeat periodically. You can try with latest version of WorkManager dependency.
Please check here for all Jetpack architecture release note. Make a note that it’s not recommended to used WorkManager, as still it’s in alpha release. You have to also consider some API standard rules and constraints while using any of this Jetpack architecture. According to the PerodicWorkRequest API there are some time interval constraints like for repeat interval see this. And sometime Device Doze mode and some constraints will be affected to the background schedulers. As you you have added into your WorkManager implementation for Network constraints will be consider while executing such background work.

And yes, according to your requirement make sure your code is written correctly, because you want to execute your background task in minutes interval but in your code you wrote interval for second.

    Asfak Saiyed

    Written by

    Geek | Android Developer | AndroidThings & IoT Learner <Raspberrypi> <Arduino>