Updated the manifest to accept network state and also got the wifi detection working.