API Reference
中文

Android get appKey

How to get appKey

Please apply for appKey in account management-SDK

The application process can be roughly divided into the following four steps:

1.If you have not logged into the account, please log in to your account, as shown below:

2.After logging in, you will enter the official website console, as shown in the figure below:

3.Click [Account] - [Developer] - [SDK] - [Add] to start applying for appKey, as shown in the figure below:

4.Enter the App Name, select the Device Type Android, and correctly fill in the Package Name and Signature SHA256. As shown below:

Click "Save" to complete the appKey. You can see the appKey under the created application, as shown in the figure:

How to get PackageName

Open the Android item configuration file AndroidManifest.xml, the content corresponding to the package attribute is the application package name, as shown in the following figure:

Please also check whether the applicationid attribute of the build.gradle file is consistent with the package attribute mentioned above. If not, INVALID_USER_SCODE will appear, please adjust it.

How to get signature SHA256

The SHA256 value of the debug version and the release version are different, please obtain the corresponding SHA256 according to the version.

Method 1

Get signature SHA256 via APK file

The first step is to open the Terminal tool of Android Studio

The second step, enter the command: keytool -printcert -jarfile <apk>

Method 2

Get the signature SHA256 from the signature file

Step 1: To open the Terminal tool of Android Studio.

Step 2: Enter the command: keytool -list -v -keystore <keystore>

Step 3: Enter the Keystore password