cordova-plugin-mbtiles icon indicating copy to clipboard operation
cordova-plugin-mbtiles copied to clipboard

Fullpath for Android Sandbox memory

Open greektornado opened this issue 10 years ago • 0 comments

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) {
...
});

greektornado avatar Feb 26 '15 09:02 greektornado