Consider using JobScheduler on API21

NEW
Unassigned

Status

()

Firefox for Android
General
3 years ago
3 years ago

People

(Reporter: wesj, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(firefox40 affected)

Details

(Reporter)

Description

3 years ago
Android Lollipop has a new JobScheduler service designed to make it easy to do some of the things we do ourselves. For instance, downloading updates or cleaning up storage. You can say "Run this job when the phone is idle, on wifi, and charging".

It would be nice to look into how hard it would be to use it for us. We might have to write a compat layer on top though...

https://developer.android.com/reference/android/app/job/JobInfo.Builder.html#JobInfo.Builder%28int,%20android.content.ComponentName%29
You need to log in before you can comment on or make changes to this bug.