Issue
I made an Android app that works fine in Debug mode. It uses the YouTube Data API to get some data from the YouTube account of the connected user.
Everything works fine, but when I make the release apk, copy-paste it on my Android device and install it, my app doesn't have the access to the YouTube Data API. I get the message "Access Not Configured. The API (YouTube Data API) is not enabled for your project. Please use the Google Developers Console to update your configuration."
Is there a step to do to allow the release version to access Google APIs that is different than in debug mode? What did I miss?
Solution
So, just needed to generate the release SHA1 footprint with
keytool -list -v -keystore ~/pathToYourKeyStore/your_release_key.jks -alias yourKeyAlias -storepass yourStorePassWord
then added this SHA1 followed by a ;
and the name of the package in "Android Applications" to my public access API key (in the Google Developers Console).
And, because I also use OAuth I had to create a new Client Id for the app with this new SHA1 certificate.
And then, wait for few minutes before it works (in my case anyway).
Answered By - Ben
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.