0

We have created the google credential key, which we are using for maps as well as directions. When we are setting a Application restriction to NONE for Google Maps Direction Api just works fine.

But When we set Application restriction to Android apps and provide a proper Package name & SHA-1 certificate (Both debug and release)- It says Request Declined from Google Api response.

{
    "error_message": "This IP, site or mobile application is not authorized to use this API key. Request received from IP address 122.15.254.57, with empty referer",
    "routes": [],
    "status": "REQUEST_DENIED"
}

Any known solution to this?

I have tried adding App signing key SHA1 as well apart from debug and release SHA1, but we are still getting the same error.

Amila Senadheera
  • 12,229
  • 15
  • 27
  • 43
  • How about trying to use different API keys for different uses, like a seperate API key for Maps SDK, and Directions. Since it is considered as [best practice](https://developers.google.com/maps/api-security-best-practices) to do so. As I'm not sure what other restrictions you have set, it would be better for you to file a support case so that they can take a look at your account configuration itself. This link might help you get there: https://developers.google.com/maps/support#contact-maps-support – Yrll Feb 27 '23 at 05:13

0 Answers0