Google Maps not showing when I run my app for the first time without wifi (Android)

时间:2017-06-15 09:36:17

标签: android google-maps google-maps-android-api-2

When I run my app for the first time (or when I clear cache) and I am not on a wifi connection the google map is not showing. If I connect to wifi the map will be shown also if I turn wifi off again on consecutive app starts. Is there a way to also get the map shown on first app start when one is on 4g f.e.?

edit: looking at my log output both scenario's seem to more or less do the same. onMapReadyCallback is called in both. It just seems like somehow the map is not rendered in the case where I don't have wifi

1 个答案:

答案 0 :(得分:0)

事实证明,未呈现的地图是与设备相关的问题。我有一台HUAWEI P8 Lite,这张手机上没有地图。与我第一次启动优步应用程序相同,地图根本不会呈现。

我已经在另一台设备MOTO G上测试了代码,并且地图显示得很好。