Skip to main content

SDK Signing

SDK Version Selection

Choose your SDK version below:

  • Apptrove SDK → Recommended for all projects (Latest: v2.0.0)
  • Trackier SDK → Will be deprecated in May 2026 (v1.x.xx)

Use the tabs below to view SDK signing code for your chosen SDK.

SDK signing enhances the security of your Android SDK integration by authenticating API requests with a secretId and secretKey. This ensures that tracking data (e.g., installs, events) is securely attributed to your app, preventing unauthorized access.

Purpose

SDK signing is critical for secure attribution and fraud prevention:

  • Authenticates SDK requests to servers using unique credentials

Retrieving Your Secret ID and Key

  1. Login to your Dashboard and select your application
  2. In the Dashboard, click the three dots in the left bottom
  3. You can see the SDK key there - click on the "Advanced" tab to generate the ID and Key
  4. Click on the "Add secret key" button to generate the ID and key

Implementation

import android.app.Application;
import com.apptrove.sdk.AppTroveSDK;
import com.apptrove.sdk.AppTroveSDKConfig;
import java.util.HashMap;

public class MainApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
final String SDK_KEY = "XXXXXXX-XXXX-XXXX-80e3-5938fadff"; // Please pass your SDK key here.

/* While Initializing the SDK, You need to pass the three parameters in the AppTroveSDKConfig.
* In First argument, you need to pass context of the application
* In second argument, you need to pass the AppTrove SDK api key
* In third argument, you need to pass the environment which can be either "development", "production" or "testing". */
AppTroveSDKConfig sdkConfig = new AppTroveSDKConfig(this, SDK_KEY, "development");
sdkConfig.disableOrganicTracking(true); // Pass true value for disable organic tracking.

/* For SDK Signing */
sdkConfig.setAppSecret("xxxx","xxxx-xxx"); // Pass the secretId and secretKey

AppTroveSDK.initialize(sdkConfig);
}
}