Android GcmNetworkManager PeriodicTask - setRequiredNetwork behavior

165 Views Asked by At

I have an Android app which implements GcmNetworkManager to schedule a PeriodTask.

In the documentation for PeriodTask, it says the following about the behavior of setRequiredNetwork():

Set the network state your task requires to run. If the specified network is unavailable your task will not be executed until it becomes available.

So my question is, does the task fire immediately when network becomes available? Or at the next setPeriod() interval?

1

There are 1 best solutions below

0
user3829751 On BEST ANSWER

Hate to answer my own question, but the task fires immediately.