WorkManager OneTimeWorkRequest InitialDelay works after twise the time set

后端 未结 1 1844
梦如初夏
梦如初夏 2021-01-15 17:45

UPDATE (21-nov-2019)

WorkManager.getInstance(activity).enqueueUniquePeriodicWork(\"test_work\",
                                                   


        
相关标签:
1条回答
  • 2021-01-15 18:49

    You problem is not clear though please update latest work manager lib to android.arch.work:work-runtime:1.0.0-beta03

    And you can explain me why do u need to enque the unique work ?

    workManager.beginUniqueWork("simple_work", ExistingWorkPolicy.KEEP, simpleRequest).enqueue();
    

    try to replace it with workManager.enque(simpleRequest); and let me know if worked

    0 讨论(0)
提交回复
热议问题