For Google API Access, can I create multiple Client IDs for the same Android package name?

I am following the Quickstart guide here to get Google Drive integration with my android app: https://developers.google.com/drive/quickstart-android .

So I created two Client IDs using the debug and release SHA1 fingerprints for the same package name. The API Console allowed this, but I was wondering since I created the Client ID with the debug key SHA1 fingerprint, will the Google OAuth2 server accept authentication request coming from my release apps?

  • Android ADT Plugin doesn't show up in Eclipse
  • What is the difference between the states selected, checked and activated in Android?
  • What is the use of LOCAL_MODULE_TAGS?
  • Approx distance to nearest mobile mast
  • Purpose of Container in Fragments for Android
  • Background color change in BottomNavigationView
  • By the way, I am using Google Play Services API to request auth token, so there’s no way to specify the ‘Client ID’ string shown in the API Console.

    Related posts:

    How to get the build/version number of your Android application?
    Android Studio show the dialog “unable to create debug bridge : unable to start adb server...
    for file picker openFileChooser() method not calling WebChromeClient of Kitkat 4.4
    How to programmatically set drawableLeft on Android button?
    Using Camera in the Android emulator
    Is it possible to always have fastscroll enabled in a listview?
  • Is String a primitive or an Object in Android or Java?
  • How to get UTC offset in seconds in android
  • How to link Google + signed in users on Parse backend on Android?
  • Java - Android - Split Activity/Class into multiple files for better organization (solution)
  • Android: Playing an audio clip onClick
  • Do some Android UI stuff in non-UI thread
  • One Solution collect form web for “For Google API Access, can I create multiple Client IDs for the same Android package name?”

    You don’t need to specify the Client ID in your code because your credentials are matched using the package name/SHA1 fingerprint pair, which is unique.

    As you generated credentials for both the debug and release certificate, your requests will be authorized correctly as long as your app uses either of those with the package name specified in the APIs Console.

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.