Skip to content

Never getting State changes for Periodic work #3

@titovnick

Description

@titovnick

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions