I am posting this here because I don't know where else to post this. Today, our application is no longer returning results for Google Places API. We are seeing the request go through on the Google Developers Console, but all phones are returning no results.
This number is climbing for today and each one of these users are stuck in the login / onboarding flow of my app.
Update (Closer Image for the last hour):
Here is an example flow of what I am seeing on all iPhones we are testing and receiving the same from our users.
They search for their location. They might or might not see some autocomplete options:
After selecting one or waiting they will see this
This is what happens
Any and all help is appreciated. Any hints on who to contact or what I should do is important.
Does google have a services page or are other apps experiencing this issue? If so, which apps?
Related SO Questions posted recently:
Easily to fix it.
- Go to your https://console.developers.google.com/apis/
- Choose "Library" - "Google Places API for iOS"
- 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.
来源:https://stackoverflow.com/questions/44165012/google-places-autocomplete-on-ios-cant-load-search-results-try-again