title: Cannot read property 'openDatabase' of undefined in android
body: <p>Trying to use the plugin to manage database on the mobile device, SQLite, through the ngCordova implementation, but it shows me the same error every time I try to create the database. The phone have <strong>Android 4.2.2</strong></p>
  
  <pre><code>TypeError: Cannot read property 'openDatabase' of undefined
  </code></pre>
  
  <h3>My code, add the the ionic and ngCodova for using the plugin's</h3>
  
  <pre><code>angular.module('starter', ['ionic', 'ngCordova'])
      .run(startApp)
      .controller('networkCtrl', networkCtrl)
      .factory('databaseFtr', databaseFtr);
  </code></pre>
  
  <h3>Start App</h3>
  
  <pre><code>startApp.$inject = ['$ionicPlatform'];
  
  function startApp($ionicPlatform) {
  
      $ionicPlatform.ready(function() {
  
          if (window.cordova &amp;&amp; window.cordova.plugins.Keyboard) {
              cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
              cordova.plugins.Keyboard.disableScroll(true);
          }
  
          if (window.StatusBar) {
              StatusBar.styleDefault();
          }
  
      });
  
  }
  </code></pre>
  
  <h3>Controller</h3>
  
  <pre><code>networkCtrl.$inject = ['$scope', 'databaseFtr'];
  
  function networkCtrl($scope, databaseFtr) {
      databaseFtr.crearDB();
  }
  </code></pre>
  
  <h3>Factory</h3>
  
  <pre><code>databaseFtr.$inject = ['$cordovaSQLite'];
  
  function databaseFtr($cordovaSQLite) {
  
      return {
  
          crearDB: function() {
  
              var db;
  
              db = $cordovaSQLite.openDB({
                  name: "mydata.db",
                  location: 'default'
              });
  
  
          }
  
      }
  
  }
  </code></pre>
  
  <p>Here is the capture showing the plugin install</p>
  
  <p><a href="https://i.stack.imgur.com/93wXR.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/93wXR.jpg" alt="plugin install"></a></p>