Cordova SDK



  1. Add the required Cordova plugin
   cordova plugin add
  1. Add the initialization code to your index.js file
   document.addEventListener('deviceready', function () {
     var notificationOpenedCallback = function(data) {
       console.log('notificationOpenedCallback:', JSON.stringify(data));
     var subscribedCallback = function(subscriptionId) {
       console.log('subscriptionId:', subscriptionId);

     window.plugins.CleverPush.init("INSERT_YOUR_CHANNEL_ID", notificationOpenedCallback, subscribedCallback);
   }, false);

Be sure to replace INSERT_YOUR_CHANNEL_ID with your CleverPush channel ID (can be found in the channel settings).