cordova-plugin-mbtiles
cordova-plugin-mbtiles copied to clipboard
Fullpath for Android Sandbox memory
The plugin kept throwing an 'SQLiteCantOpenDatabaseException' when I tried to use the application data directory. I ended up doing this to get it to work:
var store = cordova.file.dataDirectory;
var fpath = store.substring(7, store.length); //remove the 'file://' part
mbTilesPlugin.init({type: type, typepath: 'fullpath', url: fpath}, function(rinit) {
...
});