Youtube data API v3 not uploading video when created release apk

283 views Asked by At

I am using youtube data API v3 to upload videos on youtube. It is working fine, but when we generate a signed apk with release mode. it is not uploading video and I receive null in videoId. Can anyone guess what can be the issue?

I have tried: Create Android API Key using the released version of SHA1 key.

1

There are 1 answers

1
keepTrackOfYourStack On

In my android app I had similar problems until I created an oauth client with the sha1 from my release keystore. An api key did not allow me to authenticate. It could be that the api does not care for the dubug version because you can't upload it to the playstore anyway. not sure.

I used this site to create the oauth client: google dev console

the process is similar to how you make the key. Good luck