Search code examples
javaandroidgoogle-maps-android-api-2api-keygoogle-api-console

Using other account when uploading signed apk in google play store


Their is no bug with regard to the maps. I already signed the apk with release keystore ,

the API Keys are registered in my account

It perfectly works in any devices.

What's the problem is when it is uploaded with the client account in google play store and downloaded in their device, the map displays white.

Question:

1.Does it affect the application if the API keys are registered to my account and the one who upload the app is not my account ?


Solution

  • Answer:

    The API key is associated with the apk package and it's keystore and not a user account.

    First you need to create a keystore for you app. Refer to http://developer.android.com/tools/publishing/app-signing.html

    Next go to https://console.developers.google.com/project and create a project (if don't have one already).

    On your project page go to API's & auth > APIs enable Google Maps Android API v2

    Next go to API's & auth > Credentials and create a new Key for Android applications. Follow those instructions careful and you it will generate you an API to use on your manifest. (Remember to use the keystore you used to sign your app for play store and not your debug keystore)

    More info:

    https://developers.google.com/console/help/new/#generatingdevkeys

    Good luck