Google Maps iOS SDK: Map not loading

岁酱吖の 提交于 2019-12-02 07:19:09

Hi I found the issue and fixed the problem. The problem is with the API key - not code. Before IOS app, i was trying a sample android map app and i used the same console to create new api key without enabling google maps api for IOS.

Developers console somehow allows to add IOS restrictions on API key even though SDK for IOS is not enabled - because of this, I never thought I need to do anything more.

If you get this error and you already verified bundle ID is current, check the following:

  • Go to https://console.developers.google.com
  • Click on dashboard
  • Click on "Enable APIs and Services" with a + mark on the top of the page.
  • Check that you have "Google Maps SDK for iOS" enabled. if it is not, enable it.
  • Rerun your app and enjoy :)

-Kal

Please make sure you generate the right api key before you run the project for the first time. I faced the similar issue and fixed it by generating and enabling the right APIKey for iOS (and not javascript or android) using this link -- APIKey for iOS

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!