storesafe / cordova-sqlite-storage

A Cordova/PhoneGap plugin to open and use sqlite databases on Android, iOS and Windows with HTML5/Web SQL API
Other
2.15k stars 715 forks source link

In latest browser websql is deprecated, can't able to create a database #1017

Open DK-06 opened 1 year ago

DK-06 commented 1 year ago

In latest browser websql is deprecated and no longer available in all the browsers like chrome/edge/Firefox, I can't able to create a database. It's getting an error.

So, what's the alternative solution to use the sqlite db.

asa47 commented 1 year ago

Hello, open the following link in chrome chrome://flags/#web-sql-access and enable "Allows access to WebSQL APIs". In theory it should only affect the device running the websql in the browser.

DK-06 commented 1 year ago

Hello asa47, Thanks for your response.

The solution which you provided is worked. After enabling we can able to access websql.

Have one more question, How long this solution will work. In future release from chrome, we may not use this solution right. Any time period we have?

etiennenoel commented 7 months ago

WebSQL has been deprecated and this flag has been removed.

mirko77 commented 6 months ago

The only option left is the Brave browser by installing a version that supports WebSQL and launching it via the command line with a flag that disables the automatic updates.

Details https://github.com/brave/brave-browser/issues/5576