Skip to main content

Access flow

Zero cost startup

TikCDN offers 25GB of free data per account per day, helping you get started at zero cost.

Access flow

Register

https://console.tikcdn.cc

Create a project/application

After logging in, you need to create a project and create an APP or Web application under the project.

- iOS application: iOS Bundle ID;
- Android application: PackageName And Release SHA1;
- HarmonyOS application: AppID;
- Windows/Electron/Linux: PackageName;
- Web application:Domain Name。

Integrated SDK

After integrating the SDK, you can go online.

View operational data

After going online, you can log in to the background to view P2P operation data.

Configuring P2P

You can enable or disable the P2P function for applications and enable or disable the P2P function in a cellular network.

How does Android get the Package(package name)?

Get the android application package name:

Open the "AndroidManifest.xml" configuration file of the Android application project, and the package attribute corresponds to the application package name.

How does Android get the SHA1 value?

The SHA1 value in debug mode and release mode is different. When releasing apk, you need to reconfigure the Key according to the keystore corresponding to the apk. For details about how to obtain SHA1 in release mode, see the following table.

Get SHA1 through Eclipse

With adt 22 and up, you can view it directly in eclipse.

Windows: Open Window -> Preferances -> Android -> Build in eclipse.

Mac: In eclipse, open Eclipse/ADT->Preferances -> Android -> Build.

In the Build dialog box that pops up, the value of SHA1 fingerprint is the Sha1 value of the Android signature certificate, as shown in the following figure:

sha1

Get SHA1 through Android Studio:

1、Open the Terminal tool of Android Studio.

2、Enter the keytool -v -list -keystore file path.

3、Enter the Keystore password.

sha1

Use keytool (which comes with jdk) to get SHA1

1、Run to the cmd console:

2、In the pop-up console window, enter cd.android to locate the.android folder:

cmd

3、Continue typing commands in the console:

For the debug version, run the debug.keystore command: keytool -list -v -keystore debug.keystore for the release version, run the keystore corresponding to apk. keytool -list -v -keystore The keystore of apk is as follows:

cmd

4、You are prompted to enter the keystore password. The default password for the debug version is android, and the password for the release version is the password set for the apk keystore. Enter the key and press enter (if no password is set, press enter directly), then you can obtain the Sha1 value in the information displayed on the console, as shown in the following figure:

cmd

Note: The keystore file is the Android signing certificate file.

How does iOS get the Bundle identifier?

Xcode switches to Info to look at the Bundle identifier. Copy the text in both black and gray.

iOS Bundle identifier

How does HarmonyOS obtain an appid?

1、After the HarmonyOS application project is created, you need to configure signature information before you can use the real machine to debug and release applications. For details about how to configure signatures, see Huawei Official Website Guide for Configuring Application Signature Information

2、After configuring the signature information, obtain the appId of the application using the following code:

let flag = bundleManager.BundleFlag.GET_BUNDLE_INFO_WITH_SIGNATURE_INFO;
let bundleInfo = bundleManager.getBundleInfoForSelfSync(flag)
let appId = bundleInfo.signatureInfo.appId;

The resulting appId format is similar to:

com.dync.demo_BGtGgVB3ASqU7ar1nHkwX4s0nIexDbEwqNrVoatUDs17GrClWC7V2/zhoYh6tFQHAd5DASWVTEAgvZfzrEGljjs=

tip

To ensure that authentication succeeds, ensure that the key used for real machine debugging is based on the appid obtained from the real machine, and the key corresponding to the appid of the real machine is used for real machine debugging.

Windows如何获取包名(Package)?

Click the application icon, right-click to view the properties, and get the package name of the Windows application, as shown below:

Windows Package