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

对着背影说爱祢 提交于 2019-11-26 20:58:43

问题


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:

  • Android: Google Places API can't found results
  • iOS: https://stackoverflow.com/questions/44163583/google-autocomplete-wont-load-suggestions-and-instead-shows-cant-load-search

回答1:


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




回答2:


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!




回答3:


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




回答4:


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.




回答5:


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.




回答6:


The same issue come in my project also. and I try all solutions but they are not working for me.

Then I update my pod and then my google API is starting working.

So, please try to update a pod.



来源:https://stackoverflow.com/questions/44165012/google-places-autocomplete-on-ios-cant-load-search-results-try-again

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