I am starting to implement the GcmNetworkManager
to trigger a sync when the user gets their internet connection back
When looking at the docs for the OneoffTask it says that setExecutionWindow is mandatory
Mandatory setter for creating a one-off task
however I only want this to execute when the user has internet and it sounds like it could execute before the user has internet but in the window of windowStartDelaySeconds
and windowEndDelaySeconds
.
So does that mean that the network manager could execute the task sometime before windowEndDelaySeconds
or does that mean that once internet has been restored it will execute in that time?