Skip to main content

SDK Signing

SDK signing enhances the security of your Apptrove Andriod 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 Trackier's servers using unique credentials

Retrieving Your Secret ID and Key

  1. Login to your Trackier Panel 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.trackier.sdk.TrackierSDK;
import com.trackier.sdk.TrackierSDKConfig;
import java.util.HashMap;

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

/* While Initializing the SDK, You need to pass the three parameter in the TrackierSDKConfig.
* 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". */
TrackierSDKConfig sdkConfig = new TrackierSDKConfig(this, TR_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

TrackierSDK.initialize(sdkConfig);
}
}