I know that the MapView does not work if you use WiFi without a SIM card and your firewall blocks unusual ports. Maybe using a SIM card solves the problem. Or there is an error in your code. Then the github example should be a good starting point.