Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It's strange, it should be working... By the way, in iOS5.1, WebSQL is considered tempory data that can be deleted at any time...</p> <p>It's possible to change the location of WebKit data calling a private API. You should be able to set the location to a secure folder like Documents. I did not test this solution yet, but look at this post :http://stackoverflow.com/questions/4527905/how-do-i-enable-local-storage-in-my-webkit-based-application</p> <p>I think the safer way is to use SQLite (same as WebSQL) with a phonegap plugin. That plugin save the database in the Document folder, that mean that the DB is not deleted and is saved by iCloud.</p> <p>Here is the Native SQLite phonegap plugin : <a href="https://github.com/davibe/Phonegap-SQLitePlugin" rel="nofollow">https://github.com/davibe/Phonegap-SQLitePlugin</a> Regarding this plugin, there are some differences between the WebSQL API, here is an adaptor: <a href="https://gist.github.com/2009518" rel="nofollow">https://gist.github.com/2009518</a></p> <p>You should also migrate the old WebSQL db file (stored in Library/WebKit or Caches directory) to the Document folder. Here is a code to do that : <a href="https://gist.github.com/2009491" rel="nofollow">https://gist.github.com/2009491</a></p> <p>There is also a fix implemented in the latest version of Cordova : <a href="https://issues.apache.org/jira/browse/CB-330" rel="nofollow">https://issues.apache.org/jira/browse/CB-330</a> (it makes a backup of the DB files in the Document folder)</p> <p>And if the data are important, you should save it to a server. I wrote a small lib to synchronize the SQlite DB to a server : <a href="https://github.com/orbitaloop/WebSqlSync" rel="nofollow">https://github.com/orbitaloop/WebSqlSync</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload