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: .

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?

  • Error:Execution failed for task ':backend:appengineEndpointsGetClientLibs
  • android getRelativeTimeSpanString() bug?
  • Does Android support near real time push notification?
  • Taking screenshot programmatically doesnt capture the contents of surfaceVIew
  • Android: How to make the keypad always visible?
  • How to include a bullet point in Google Play app description?
  • 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:

    Android LinearLayout with color resource: What am I doing wrong?
    Correct usage of a Spinner, following material design guidelines
    CoordinatorLayout with RecyclerView and bottom-pinned EditText
    Element must be declared error for tag shape
    error: androidmanifest.xml file missing --> What am i missing?
    How to draw a border at top of the linear layout
  • Android how to scale an image with BitmapFactory Options
  • On zoom event for google maps on android
  • Live video streaming application on Android
  • Jackson ObjectMapper with arbitrary JSON keys
  • Firebase handleIntent AbstractMethodError
  • Resize video to fit the VideoView
  • 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.