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.
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.