Fix ios network detection
Fix this fucking java code and make it work