ionicDeploy Error Plugin not loaded

I’m trying to setup the ionicDeploy for hot code push but I’m having trouble getting it to run.

In terminal I ran:

$ ionic add ionic-service-deploy

In the index I took out cordova.js:

<script src="lib/ngCordova/dist/ng-cordova.js"></script>
<!-- <script src="cordova.js"></script> -->

in Javascript I have:

.run(function($ionicDeploy, $rootScope, $http, $ionicPopup, $ionicPlatform, 
    $cordovaNetwork, userService) {
      $ionicDeploy.check().then(function (response) {
        if (response) {
          // Download the updates
          $ionicDeploy.download().then(function() {
            // Extract the updates
            $ionicDeploy.extract().then(function() {
                // Load the updated version
                $ionicDeploy.load();
            }, function(error) {
                // Error extracting
            }, function(progress) {
                // Do something with the zip extraction progress
                $scope.extraction_progress = progress;
            });
          }, function(error) {
              // Error downloading the updates
          }, function(progress) {
              // Do something with the download progress
              $scope.download_progress = progress;
          });
        } else {
            // No updates, load the most up to date version of the app
            $ionicDeploy.load();
        }
      },
      function(error) {
        console.error("ionicdeploy error", error);
        // userService.customAlert("Update Error", JSON.stringify(error));
      });
    })

You need to add Cordova white list…

$ ionic plugin add https://github.com/apache/cordova-plugin-whitelist.git

Results in:

Failed to install 'cordova-plugin-whitelist':CordovaError: Plugin doesn't support this project's cordova-android version. cordova-android: 3.7.1, failed version requirement: >=4.0.0-dev
    at checkEngines (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:116:29)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:289:16
    at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)
    at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:557:44
    at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)
    at process._tickCallback (node.js:355:11)
Plugin doesn't support this project's cordova-android version. cordova-android: 3.7.1, failed version requirement: >=4.0.0-dev