In my app I use Google Directions API to draw a route from point A to point B on my map.
When I try to get my route I get 403 with message "This IP, site or mobile application is not authorized to use this API key.", but this issue arises only when I try to restrict my API key to be used by android apps. When I drop the restriction everything works fine. Package and fingerprint are correct, the issue is actual for both debug and release builds. Am I missing something?
Thanks in advance!
You should set your API key to not restricting. I had the same problem but fixed it this way.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.