matanshukry / flutter_google_places_sdk

Flutter plugin for google places native sdk
32 stars 68 forks source link

Android: API_ERROR_AUTOCOMPLETE, 9011: This IP, site or mobile application is not authorized to use this API key. #66

Closed chrallard closed 6 months ago

chrallard commented 7 months ago

This issue is only present on Android. My API key is restricted to my app's package name and SHA-1 certificate. I'm receiving this error:

FlutterGooglePlacesSdk::call error: PlatformException(API_ERROR_AUTOCOMPLETE, 9011: This IP, site or mobile application is not authorized to use this API key. Request received from IP address *********, with empty referer, {type: class com.google.android.gms.common.api.ApiException}, null)

Same problem here, but the user marked as completed without info on how it was fixed.

chrallard commented 6 months ago

Closing. For anyone that runs into the same problem, I didn't add the android debug certificate fingerprint under "Android restrictions" in the google cloud console.