<uses-permission android:name="com.google.android.gms.permission.AD_ID"/>
Please ensure this permission is added to your AndroidManifest.xml in order for ADID collection to continue to take place as of Android 13 and beyond.
Some Google Play policies, such as the Families Policy, require that apps not use the ADID. In those cases this permission should not be included as the ADID should not be collected.
Integrating the SDK
Requirements:
- Android API 16
- iOS Target 12.4
- Xcode 14.1
- ReactNative 0.60
- Native Code support enabled
Supported Platforms:
- Android
- iOS
Data Privacy:
Migration:
If you are migrating from a Kochava SDK prior to version 2.0.0 to version 2.x usage can be updated by reviewing the code samples for any given topic, as the overall usage of the SDK remains the same.
Integration:

In order to use the Kochava SDK, first add it within your project. This can be accomplished using npm (recommended) or by downloading the SDK files manually and adding them.
- Using a terminal navigate to the root directory of your ReactNative Project.
- Run the following commands:
12npm install react-native-kochava-tracker --savecd ios && pod install && cd ..- Download the latest version from the Download Badge above to the root directory of your ReactNative Project.
- Using a terminal navigate to the root directory of your ReactNative Project.
- Run the following commands:
12npm install react-native-kochava-tracker.tgz --savecd ios && pod install && cd ..
Starting the Tracker

Once you have added the Kochava SDK to your project, the next step is to configure and start the Kochava Tracker in code. Only your App GUID is required to start the tracker with the default settings, which is the case for typical integrations.
We recommend starting the tracker as soon as the application starts, although this can be done later if needed. Starting the tracker as early as possible will provide more accurate session reporting and help to ensure the tracker has been started before using it. Keep in mind the tracker can only be configured and started once per launch.
-
12345import { KochavaTracker } from 'react-native-kochava-tracker';KochavaTracker.instance.registerAndroidAppGuid("YOUR_ANDROID_APP_GUID");KochavaTracker.instance.registerIosAppGuid("YOUR_IOS_APP_GUID");KochavaTracker.instance.start();
-
123456import KochavaTracker from 'react-native-kochava-tracker';var configMapObject = {}configMapObject[KochavaTracker.PARAM_ANDROID_APP_GUID_STRING_KEY] = "YOUR_ANDROID_APP_GUID";configMapObject[KochavaTracker.PARAM_IOS_APP_GUID_STRING_KEY] = "YOUR_IOS_APP_GUID";KochavaTracker.configure(configMapObject);
Confirm the Integration
Where to Go From Here:
Now that you have completed integration you are ready to utilize the many features offered by the Kochava SDK. Continue on to Using the SDK and choose a topic.