Only check network state if permission is granted.
Merge pull request #31 from keenlabs/soft-network-check

Soft Network Check