Is it possible to warn users that the scanForNetworks() function will fail if an app doesn't have location permissions? It was difficult to troubleshoot why my app suddenly wasn't able to join WiFi networks. Had to print the output of scanForNetworks(), notice that the SSIDs were null, and search for that online till I found someone having a similar issue: https://github.com/gopro/OpenGoPro/issues/506.