To check for connectivity we should either:
- Set
waitsForConnectivity = true
and then monitortaskIsWaitingForConnectivity
, or - Set
waitsForConnectivity = false
and then fail immediately
However background sessions always wait for connectivity AND never call taskIsWaitingForConnectivity
.
Huh?
In our case, at the time user is initiating downloads the "background" session is actually in the foreground and we need this information. What am I missing?