androidgoogle-apigoogle-api-clientgoogle-api-java-clientandroid-googleapiclient

Android Google API Debug App working but not signed App


My Android App seems to be working fine by using code given from: google api webpage

when running in debug mode but once I generated a signed apk, and uploaded the app to the app store, the app will not log in properly. Is there any way of fixing this, or even debugging an installed app as logs will not show up in android studio? Thanks so much.


Solution

  • I had same issue with Google Map Api... I had solve this. You have to generate sha-1 key using your keystore (this keystore use/ generate when you generate signed apk).

    May be, the SHA1 currently you are using for debugging purpose .

    So when you are creating a signed apk u have one kestore file. try to generate new SHA1 key with this new keaystore file.

    then using this keystore file create API key for signed apk.

    replace debug API key already stored in manifest file and google API console with the new one.

    It will work.

    thanks