Does Firebase Job dispatcher needs internet access for scheduling job?
android, firebase, firebase-job-dispatcher
Solution
when you use `.setConstraints(Constraint.ON_ANY_NETWORK)` the job will be executed when there is any type of network connection, You can choose between none, any and unmetered (Wifi), by default it's `NONE` so just delete the `setConstraints`
Problem
Does Firebase Job dispatcher needs Internet access for scheduling job? When I turn off my Internet access it seems like the scheduled job is not doing anything at all. When I turn it on back, the scheduled job starts the working. This my code for scheduling job using 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); ```