Android WorkManager api for running daily task in Background

前端 未结 6 564
野的像风
野的像风 2020-12-09 04:16

I need to call one API daily in the background even if the app is closed. I have seen about WorkManager API. For my scenario, I tried PeriodicWorkRequest but unfortunately,

6条回答
  •  眼角桃花
    2020-12-09 04:32

    There was issue in alpha 01 which:

    Fixed an issue which caused Workers to be rescheduled on Application.onCreate().

    Use latest version of WorkManager i.e. 1.0.0-alpha02. Check release notes for more info

提交回复
热议问题