Google Places API Android ResultCallback Not Firing
I'm using the Google Places API for Android and I can't seem to get a resultCallback from a PendingResult to fire. Here's my code (essentially identical to the sample code to https
Solution 1:
I had the same issue because I was missing the permission that allows the API to access Google web-based services
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
Solution 2:
For reference, to anyone who visits this question, make sure you do all 3 steps below:
Add your API key to your app manifest
<application>
...
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="YOUR_API_KEY"/>
</application>
Then include in your manifest as @Alex Baker suggested
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
And also enable Google Places API for Android. Google Places API is a different API and your calls will fail with Places AutoComplete status 9001
Post a Comment for "Google Places API Android ResultCallback Not Firing"