Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not open database #93

Open
naufal18-bot opened this issue Oct 21, 2021 · 0 comments
Open

Could not open database #93

naufal18-bot opened this issue Oct 21, 2021 · 0 comments

Comments

@naufal18-bot
Copy link

I'm trying to make a sample CRUD using cordova-sqlite-ext on my Cordova project
First, I install the plugin like this
cordova plugin add cordova-sqlite-ext
After that, I put my pre-populated database inside the www folder

And I open the database like this

document.addEventListener('deviceready', onDeviceReady, false);

function onDeviceReady() {
    var db = window.sqlitePlugin.openDatabase({
        name: 'app.db',
        location: 'default',
        createFromLocation: 1
    })
}

Is there something that I did wrong?

Anw, I was run the application in browser and my android device as well
But it still the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant