You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I am using localforage with cordova-sqlite-storage. On certain Android devices (not all), the UI completely freezes (and does not recover) when I try and store a large record.
order = [window.cordovaSQLiteDriver._driver,
localforage.INDEXEDDB,
localforage.WEBSQL,
localforage.LOCALSTORAGE];
localforage.defineDriver(window.cordovaSQLiteDriver)
.then(function () {
return localforage.setDriver(order );
}).then(function () {
// this should alert "cordovaSQLiteDriver" when in an emulator or a device
ZMDataModel.zmLog("localforage driver for storage:" + localforage.driver());
});
The record that freezes is this:
localforage.setItem("serverList", longstring);
where longstring = this value (for example). [3033 characters]
I will add tests for record sizes of 3000 or greater when I get a chance. Unfortunately I cannot be so confident that I will be able reproduce an issue that only shows up on certain Android devices. It may take a few weeks due to my current backlog.
Hi there, I am using localforage with cordova-sqlite-storage. On certain Android devices (not all), the UI completely freezes (and does not recover) when I try and store a large record.
version:
Here is how I init it:
The record that freezes is this:
where longstring = this value (for example). [3033 characters]
Note that if I change the order to WEBSQL/INDEXEDDB above sqlite, then things work fine, which is why I believe the problem is with the sqlite plugin.
thank you for your time
The text was updated successfully, but these errors were encountered: