Search code examples
iosswiftgoogle-mapsappstore-approvalgoogle-places

Google Map don't load in iOS


I’m using GoogleMaps pod in my iOS application and it was working fine, but in my last build, apple reject my application. And the reason behind that is, the map was unable to load at the time of review on iPad running iOS 12.2 on Wi-Fi.

I did try to reproduce that bug on my device but I couldn’t.

  • Application do ask for location permission
  • Google Place API key also seems ok.

Is there any way to identify what the actual issue is and how I am supposed to solve this one?


Solution

  • Finally, I've solved that issue and for that, I've done some of the changes in my project.

    1 - I've patched the latest Google Plist file in the project (I wasn't sure whether the old one was latest or not)

    2 - I was using multi language in my project so before setting the delegate of google map, I've set the language for my project.

    3 - instead of set the google map from Storyboard, I've set the google map programmatically in my view controller after setting language.

    After surfing for so long to solve this issue, I came to know that this issue occurs when your App supports multi language. These some steps did work for me.