I am trying to use openDatabase with a Google Chrome app but the following error is displayed:
Uncaught ReferenceError: openDatabase is not defined
I also added permissions (unlimitedStorage) in manifest.json.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
WebSQL is disabled for Chrome apps, as you can see in the documentation.
If you want to save data persistently, use the
chrome.storageAPI,IndexedDBor thechrome.fileSystemAPI (not to be confused with the HTML5 Filesystem API!).