check an app has access to the network