So I am consuming the Google Link Shortener API. I have created an API Key for access in the Developer Console. When the API has no restrictions, then I am able to call it and get the result, but when I restrict the key with my android package name and SHA-1 then it gives an error The request did not specify any Android package name or signing-certificate fingerprint. Please ensure that the client is sending them or use the API Console to update your key restrictions.
Although I am sending the request from the Android app. I am using retrofit for networking.
Do i have to explicitly specify the package name? and so then how?