I am using the "Places Autocomplete" feature of the Places SDK for Android. I have set up an API key via the Google Cloud credentials console, and it worked great.
However, I attempted restricting my API key usage to my specific app, and it no longer works. In logcat, I can see
This IP, site or mobile application is not authorized to use this API key. Request received from IP address xx with empty referer
I am sure I've entered by package name and SHA-1 fingerprint correctly on the API key restriction page.
I've seen lots of similar questions. Some answers involved setting up a "server" API key instead of an "Android" API key, but I think that's no longer relevant. Other answers claim that the Places API can only be restricted via IP addresses. But surely that can't be right-- how is this supposed to work???
Any ideas or clarification would be greatly appreciated!