Search
Clear search
Close search
Google apps
Main menu

Find & troubleshoot your license key

Google Play offers a licensing service that lets you enforce licensing policies for the apps that you publish on Google Play. With the licensing service, your apps can query Google Play at run time to obtain their licensing status for the current user, then allow or disallow further use as appropriate.

Go to the App Licensing section of our Android Developers site to learn more about the licensing service and how to add it to your application.

Find your app's license key

  1. Sign in to your Play Console.
  2. Click All Applications All applications.
  3. Select an app.
  4. Select Development tools > Services and APIs.
  5. Find the section labeled, "Your license key for this application."

Verify Google Play Licensing implementation

Before uploading your app to Google Play
If no application with that package name and version code is on Google Play, sign into an Android device with the same account that you use to sign into your Play Console. Use this account as the primary account on your Android device. Then, set the test response and verify that your app behaves appropriately for those responses.

Note that the ServerManagedPolicy caches test LICENSED responses for only one minute. Normal (non-test) LICENSED responses will be cached longer.
After uploading the app to Google Play
If you've uploaded the app with license-checking to Google Play (regardless of the current publish state), sign into an Android device with the same account that you use to sign into your Play Console or a license test account as the primary account. Then, set the test response and verify that your application behaves appropriately for those responses.

Note that the ServerManagedPolicy caches test LICENSED responses for only one minute. Normal (non-test) LICENSED responses will be cached longer.
I need more help implementing my license check
Development and testing issues

This includes License Verification Library (LVL) download and integration, library projects, policy questions, user experience ideas, handling of responses, obfuscator, IPC, and test environment setup. Go to Stack Overflow.

Reporting issues with the licensing library

For License Verification Library (LVL) bug and issue reports, visit the Issue Tracker.

Reporting issues with Google Play Licensing service

This includes publisher accounts, licensing key pair, test accounts, server responses, test responses, application deployment and results. Please contact us.

 

Troubleshooting licensing server issues

Intermittent licensing server failures
Make sure you're using the latest copy of the Licensing Server. If you haven't recently updated your code, upgrade to the latest version of Licensing Server.
Licensing server failing for a specific customer
If a customer experiences licensing issues while accessing your app, they might be using a different account than the one used at the time of purchase. Since the app is associated with a different Google Account, the license then fails. Make sure the user is logged into the appropriate Google Play account before opening your app.
Questions about technical implementation
If you have questions regarding the technical implementation of Copy Protection or Licensing Server, go to the Android Developers site.

 

Was this article helpful?
How can we improve it?