Add Context to be able to check for connectivity

Checks for connectivity over WiFi or Mobile networks