Window.cordova undefined during USB android device testing


Im not sure what im doing wrong but I cant get window.cordova.
I know you must be on a device so I am using my nexus 4 hooked up with USB.

Heres the code:

.run(function($ionicPlatform) {
  $ionicPlatform.ready(function() {
     console.log('this gets run');
       console.log('this does not run');


are you sure cordova.js is included in index.html?


This is my index.html, I have ngCordova included is that enough?

 !DOCTYPE html>
      <meta charset="utf-8">
      <meta content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width" name="viewport">
      <title>Ionic App</title>
      <script src="lib/lodash/lodash.min.js"></script>
      <script src="lib/jquery/dist/jquery.min.js"></script>
      <script src="lib/ionic/js/ionic.bundle.min.js"></script>
      <script src="lib/ngCordova/ng-cordova.min.js"></script>

      <script src="js/app.js"></script>
      <script src="js/controllers.js"></script>
      <script src="js/services.js"></script>
      <script src="js/filters.js"></script>
      <link rel="stylesheet" type="text/css" href="css/">
      <link rel="stylesheet" type="text/css" href="lib/animate.css/animate.min.css">
    <body ng-app="my_ionic_app">


no cordova.js must be included :wink: ng-cordova is just a wrapper around cordova.js and simplyfies things from cordova