Android

CleverTap

Introduction#

Quick hacks for the analytics and engagement SDK provided by CleverTap - Android

Remarks#

Get your CleverTap credentials from https://clevertap.com.

Get an instance of the SDK to record events

CleverTapAPI cleverTap;
try {
  cleverTap = CleverTapAPI.getInstance(getApplicationContext());
} catch (CleverTapMetaDataNotFoundException e) {
  // thrown if you haven't specified your CleverTap Account ID or Token in your AndroidManifest.xml
} catch (CleverTapPermissionsNotSatisfied e) {
  // thrown if you haven’t requested the required permissions in your AndroidManifest.xml
}

Setting the debug level

In your custom application class, override the onCreate() method, add the line below:

CleverTapAPI.setDebugLevel(1);

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow