Google Places AutoComplete on iOS - Can't Load Search Results - Try Again

北战南征 提交于 2019-11-27 22:24:11
Huu Phong Nguyen

Easily to fix it.

  1. Go to your https://console.developers.google.com/apis/
  2. Choose "Library" - "Google Places API for iOS"
  3. ENABLE (Blue Button)

API Key as same as Google Maps APIKey

This was the same issue to me.

According to new rules by Google we have to compulsory setup a Billing Account.

Maybe you have something left with the payment setup. Check the status for your Billing account, it might be closed. Complete the pending stuff and this won't an issue anymore. Hope that helps you!

You might have hit your 1k/day API request limit. To increase it to 150k/day, you just need to verify your credit card. https://developers.google.com/places/ios-api/usage?hl=en_US

Step 1

Go to your https://console.developers.google.com/apis/

Step 2

Select you project and go to library setting. Sear Google Places and click on Google Places box. Click on Enable button.

A few things to look out for.

First, go to https://console.developers.google.com/apis/ and make sure the Google Places API is enabled. Select your project on the top left, then select library on the left as well. Then, look for "Places API" and enable the API.

Second, make sure you have a billing account enabled. To do so, go to https://console.developers.google.com/billing/ and proceed to create an account. Make sure your project is linked to this account as well. To link the account, go to your project and select the "Billing" option from the hamburger menu on the top left corner.

Lastly, if you have application restrictions, make sure the bundle identifier from your iOS project is associated with the API key you're using. Go to your project in XCode, click on the General tab, and copy the value by "Bundle Identifier". Then, go back to https://console.developers.google.com/apis/ and make sure your project is selected. Then, go to the "Credentials" tab on the left. Select your key, and go down to where it says Accept requests from an iOS application with one of these bundle identifiers and paste the value in the text box below.

If you have API restrictions, make sure the Places API is added to your list of accessible APIs.

Click "Regenerate Key" at the top and use the new key generated under where it says "API Key" in your project. This process may take up to 5 minutes to take into effect.

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