0

With the exact same code, no location shows up for API 32/31, but everything is working for other APIs. I am not too sure whether this is an API issue or sth. I have added all the dependencies and permissions in the XML file, as well as the API key (which is also enabled), but apparently, my emulator still doesn't like that.

Zhao Chen
  • 9
  • 2
  • Have a look at this https://stackoverflow.com/a/29854418/7093155 and this https://stackoverflow.com/a/50448772/7093155 if you are the first client to connect, fusedLocation.lastLocation is null if called immediately your app launches – Robin Apr 18 '22 at 14:03
  • @Robin I have seen that before, but how do I make sure that there is a gap between showing the map and retrieving the last location? – Zhao Chen Apr 18 '22 at 20:55

0 Answers0