IndexedDB - Random dataloss on iOS

Hello together, I'm developing an application since 7 years now, with cordova, a cross-plattform app. This app makes it possible to track down all your coffee brews, and all parameters for it.

I've been reported lately that random data entries are missing / deleted. Strange enough that not all data are deleted, rather a random entry, sometimes one, sometimes also multiples.

I've searched the web for this kind of issue, and I could not find it.

Also to mention: The storage code how I handle data load/save has not been touched by me since about 5 years and the issue randomly popups up now since 1 or 2 weeks by the endusers, which are not less.

Any help would be great! Thank you so much Lars

Answered by Beanconqueror in 785564022

The issue has been found after testing by users, but theres no solution yet. The thrown error is: "Error: Uncaught (in promise): UnknownError: Connection to Indexed Database server lost. Refresh the page to try again",

This error is referencing to this already reported bug: https://bugs.webkit.org/show_bug.cgi?id=197050

Somehow it also tells, that with iOS 17.4.X this issue has been increased much more, because before we didn't have this kind of issue.

Accepted Answer

The issue has been found after testing by users, but theres no solution yet. The thrown error is: "Error: Uncaught (in promise): UnknownError: Connection to Indexed Database server lost. Refresh the page to try again",

This error is referencing to this already reported bug: https://bugs.webkit.org/show_bug.cgi?id=197050

Somehow it also tells, that with iOS 17.4.X this issue has been increased much more, because before we didn't have this kind of issue.

We are also having this issue in our apps. Need a fix urgently!

IndexedDB - Random dataloss on iOS
 
 
Q