title: Uncaught TypeError: Cannot call method 'openDatabase' of undefined - only from physical device
body: <p>I am using SQLite plugin for cordova. I'm making a telerik mobile/kendo mobile app.  I use the telerik appBuilder windows client IDE. I clicked plugins and checked the SQLite plugin check box to make sure it is integrated with my app. </p>
  
  <p>When running the app from the simulator within the telerik appBuilder IDE, the app works fine. But when I remote debug the app from my Android Nexus 5 or just try and use the app at all from the nexus 5, it stalls at the start. I can see in the remote debugger that it says <code>Uncaught TypeError: Cannot call method 'openDatabase' of undefined</code>  about the line marked "HERE" in this function:</p>
  
  <pre><code>app.openDb = function() {
     if (window.navigator.simulator === true) {
          // For debuging in simulator fallback to native SQL Lite
              console.log("Use built in SQLite");
              app.db = window.openDatabase("VCareMobileDB", "1.0", "Shopping List Demo", 200000);
      }
      else {
          console.log("Using SQLite Plugin DB");
              app.db = window.sqlitePlugin.openDatabase("VCareMobileDB"); //HERE
      }
  }
  </code></pre>
  
  <p>Why might this line trigger the error from a physical device and not from the telerik appbuilder simulator?</p>
  
  <p>Thanks. </p>