Getting error : Database location or iosDatabaseLocation value is now mandatory in openDatabase call
<p>I am using android-cordova-ionic with ngCordova sqlite.</p>

<p>I am getting error Database location or iosDatabaseLocation value is now mandatory in openDatabase call on device.</p>

<p>I have run example <a href="https://github.com/teerasej/Ionic-Example-SQLite" rel="nofollow">https://github.com/teerasej/Ionic-Example-SQLite</a> which is working fine but when i moving code to my app it give above error.</p>

<pre><code> try {
  db = $cordovaSQLite.openDB({name:"nextflow.db",location:'default'});
} catch (error) {
  alert(error);
}
</code></pre>

<p>Is there any configuration mistake?</p>