Languages

Menu
Sites
Language
WebSQL API not working (undefined)

Hello

I am having some real trouble using the WebSQL Api. Actually, I can't use it at all. When I try to open the database, I get:

 

TypeError: 'undefined' is not a function (evaluating 'window.openDatabase')

 

I have tried calling simply openDatabase(), window.openDatabase(), no results. Seems like it's not available at all. I have tried both my code and the code provided in tutorials:

http://download.tizen.org/misc/examples/w3c_html5/storage/web_sql_database/websqldatabase_example.html

 

This happens both on the device and the emulator.

I do have the http://tizen.org/privilege/unlimitedstorage declared.

window.webkitIndexedDB is defined and works properly... so it's not a matter of visibility.

 

Any ideas?

 

 

 

 

 

Responses

3 Replies
Marco Buettner

Which SDK do you use? Wearables (Gear2, Gear S) don't support WebSQL, only indexedDB or WebStorage

Maciej

Ok, good to know that. I was mislead because simple search in the Wearable SDK Help returns documentation about WebSQL.

Marco Buettner

How to you search? I cannot found "WebSQL" anywhere of the documentation o0