title: Detect connectivity changes on Android 7.0 Nougat when app is in foreground
body: <p>Nougat changed the way it handles CONNECTIVITY_CHANGED intents (basically ignoring it, forcing devs to use the job scheduler) so this leaves me wondering:</p>
  
  <p>If I have an app that is in the middle of retrieving some data (and I checked if the phone was online at the time I did the request but the user is on the move and the phone connects to a different wifi access point, for example) and it fails, how do I detect that the connection has been restored and I cam retry fetxhing the data?</p>
  
  <p>So in this case my app is in the foreground, I think Chrome (for android) has a similar function. </p>
  
  <p>Do I need to poll it myself? Or is there some event that is allowed at that time?</p>