Add Contentsquare to your appSection titled Add Contentsquare to your app
How to include itSection titled How to include it
Open up a terminal window and navigate to the folder where your application is stored. First, find the latest version of the plugin compatible with your version of Cordova using our compatibility table. Then, install the plugin as follows, specifying the exact version you want to install if needed:
If your app is written in TypeScript, you can also install the types definitions package.
The plugin defines an object ContentsquarePlugin. Although the object is in the global scope, features provided by this plugin are not available until after the deviceready event.
Start the SDKSection titled Start the SDK
You do not need to do anything to start the SDK. Now that the SDK is a dependency of your app, it will autostart itself when your application starts.
Validate SDK integrationSection titled Validate SDK integration
Look at the native SDK docs for validation on each platform.