Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Never getting State changes for Periodic work #3

Open
titovnick opened this issue Mar 17, 2020 · 0 comments
Open

Never getting State changes for Periodic work #3

titovnick opened this issue Mar 17, 2020 · 0 comments

Comments

@titovnick
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant