Status Update
Comments
ra...@google.com <ra...@google.com> #2
Can you please elaborate on the constraint / functionality that you are interested in ? It should help us scope this feature.
ri...@gmail.com <ri...@gmail.com> #3
Okay, Like now in workManager Constraints we have some fixed constraints we can set. If there was a custom Constraint option like where we could set any custom constraint. Then it will be helpful for us.
va...@theblueground.com <va...@theblueground.com> #4
I think that this feature is really nice. Maybe some cases would be to run based on PlayServices (for example when a newer version is available) or based on values of RemoteConfig. Thus, we could stop/start periodic workers.
For example, let's say that I have started a worker that fetches data every hour. After a while, we have a breaking change in our API and we want to force update our users. If the user does not update the app, it will fetch again and again every hour. With a custom constraint, we could say that if the app needs to be updated do not perform any action and save some resources.
se...@squareup.com <se...@squareup.com> #5
A good example would be a way to add a custom constraint for when a user has logged in/ authenticated.
se...@google.com <se...@google.com> #6
one more use-case: activate upon connecting to a BLE device.
el...@googlemail.com <el...@googlemail.com> #7
me...@gmail.com <me...@gmail.com> #8
Is it possible to make a constraint that works slightly random delay after some time that user turn on the phone.
je...@gmail.com <je...@gmail.com> #9
Thanks!!
Description
I thing if there have an custom constraints in workManager feature it will be good for us.