RxWorkManagerObservers icon indicating copy to clipboard operation
RxWorkManagerObservers copied to clipboard

Never getting State changes for Periodic work

Open titovnick opened this issue 4 years ago • 0 comments

Hi,

I am creating periodic work by WorkManager.getInstance(context).enqueueUniquePeriodicWork(TAG_PERIODIC_WORK, ExistingPeriodicWorkPolicy.KEEP, syncRequest)

and if I subscribe to LiveData I can see state changes, from RUNNING to ENQUEUED, as periodic never has SUCCEEDED state. But with same RxObservable I can get only onComplete when work is canceled, never getting any state change in onNext or anything in onError. Work is Completed with Result.success(), I can see log from WorkManager.

Thanks.

titovnick avatar Mar 17 '20 10:03 titovnick