0

I am facing an issue with google maps on iOS swift,

I searched a lot and found many solutions for the issue, that is not working with me :)

which mainly focuses on ensuring that you have:

1- enabled Google maps API for ios,

2- and adding the correct API key

I made sure that i have dont both solution but till now the map is not loading, and giving me a blank page like below image

Using Swift 3

enter image description here

8
  • Did you set iOS app restriction on the API key? Do you have active billing account that is now mandatory? Commented Oct 14, 2018 at 17:34
  • No i didn't add restrictions, i guess the billing is the issue. i didn't add an active billing. I will try it out and write the answer here Commented Oct 15, 2018 at 10:55
  • Didn't work although i added an active billing Commented Oct 16, 2018 at 11:16
  • iOS app restriction is also required. Check the documentation. developers.google.com/maps/documentation/ios-sdk/… Commented Oct 16, 2018 at 11:51
  • I added restrictions, but not working till now Commented Oct 17, 2018 at 8:59

1 Answer 1

3

Finally I found the issue,

I added pod 'GoogleMaps/M4B' to my pods, since it was declared it's a must for businesses (Premium plan) in Google maps get started guide.

When I removed it everything worked fine.

Although I tried both Premium plan and free API keys previously.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.