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?
Hate to answer my own question, but the task fires immediately.