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.