In order to make code consistent across all components scheduling in the background, please migrate the NotificationJobService to BackgroundTaskScheduler.
Good examples are already available in offline pages and prefetch.
Bonus points: NotificationJobService will also work on pre-M versions.
We should definitely move NotificationJobService to the BackgroundTaskScheduler, but only on N onward. Anita, would you mind taking a look?
The reason behind not doing this on older versions is that we "schedule" this task in response to notification interaction intents, which we have to execute as soon as possible. Prior to N we didn't need to schedule at all, as this only became a necessity due to Background Check. In addition, prior to N the Job Scheduler didn't prioritise events caused by user interaction, so it might introduce unnecessary delays.
Comment 1 by peter@chromium.org
, Sep 20 2017Status: Assigned (was: Untriaged)