Migration Guide

Migration Guide


A migration guide for users of the KochavaTracker PhoneGap/Cordova Plugin SDK released prior to 2017, to help understand the changes and make the transition.


Overview

Version 2.0.0 is a comprehensive rewrite of the KochavaTracker PhoneGap/Cordova Plugin SDK. Method names were changed, standardized keys for configuring the tracker’s parameters dictionary were provided, the native layers for iOS and Android were themselves rewritten, along with other changes.

SDK Name

The name of the SDK was changed from “Kochava” to “KochavaTracker”.

Main Object Name

The name of the main object changed.

 

Old:

 

New:

 

To migrate from an older version of the SDK, you should replace any reference to the old main class with the new main class.

Post-Install Events (Info String)

 

Old:

 

New:

 

To migrate from an older version of the SDK, you should replace the old method with the new method. For more information, see function sendEventString(_,_). Note that if you are passing a map object of information, there is now a convenience method provided for sending an info map object (see below).

Post-Install Events (Info Map Object)

The method for sending post-install events with a name and a map object of information has changed.

 

Old:

 

New:

 

To migrate from an older version of the SDK, you should replace the old method with the new method. For more information, see function sendEventMapObject(_,_).

 
 

Last Modified: Nov 16, 2017 at 5:01 pm