Initialize the Rokt Cordova SDK
Integrate the Rokt Cordova SDK
To add the Rokt Cordova SDK, go to the root of your project via Terminal and run:
$ cordova plugin add @rokt-mobile/cordova-plugin-roktsdk
Initialize the Rokt Cordova SDK
We recommend calling initialize
at the start of your application:
// 1) Replace the integration test tag ID (222) with your unique Rokt Tag ID
// 2) Replace 1.0.0 with the application version
RoktSDK.initialize(
"222",
"1.0.0",
function(msg) {
console.log(msg);
},
function(err) {
console.log(err);
}
);