4
I am unable to configure the plugin Cordova Sqlite Storage. The steps I follow are:
- Install the plugin with
phonegap plugin add https://github.com/litehelpers/Cordova-sqlite-storage
- Copy Sqliteplugin.js from inside the plugin folder.
- Configure the following permissions:
Androidmanifest.xml:
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Then I make the call:
var db = window.sqlitePlugin.openDatabase({name: "my.db", location: 1});
There is error, stating that not stating that it was not possible to open the database. I do not know if any configuration is missing.
Has anyone there ever been through anything like that?
I continue with the same mistake. Anyway, thank you Vitor.
– Marcos Barbosa
Any progress? with more data we can try to answer the question better.
– Vitor Arbex
I got Vitor. I installed the plugin by the CLI tool and managed the apk. The problem is that the plugin does not work in phonegap Developer, only generating the same apk. I’ve uploaded the test project example to https://github.com/markosbarbosa/exemplo-sqliteplugin If you’d like to suggest something, feel free. Thank you very much!
– Marcos Barbosa