Google Places API Android resultCallback not firing

前端 未结 2 1247
独厮守ぢ
独厮守ぢ 2021-01-23 08:18

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 ident

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-23 08:44

    For reference, to anyone who visits this question, make sure you do all 3 steps below:

    Add your API key to your app manifest

    
    ...
     
    
    

    Then include in your manifest as @Alex Baker suggested

    
    

    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

提交回复
热议问题