Does Firebase Work Manager need to access the Internet to schedule work? When I turn off my Internet access, it looks like the planned work does nothing at all. When I bring it back, the scheduled task will start working.
This is my code for scheduling work using the Firebase Job.
FirebaseJobDispatcher dispatcher =
new FirebaseJobDispatcher(new GooglePlayDriver(this));
Job myJob = dispatcher.newJobBuilder()
.setService(MyJobService.class)
.setRecurring(true)
.setTrigger(Trigger.executionWindow(2, 10))
.setRetryStrategy(RetryStrategy.DEFAULT_LINEAR)
.setTag("location-update-job")
.setLifetime(Lifetime.FOREVER)
.setConstraints(Constraint.ON_ANY_NETWORK)
.setRecurring(true)
.build();
dispatcher.mustSchedule(myJob);
source
share