On the initial page that loads, I have a button that stores a string using ionic storage. However, as soon as I click it, it I get the error
“Uncaught (in promise): QuotaExceededError”
This only happens on my computer when I serve to chrome, but the browser builds I create have this error as well. I had someone else serve it with the same code and they didn’t get the error.
Again, this works on android and iOS fine and doesn’t run into this error.
Here are my dependencies. I’m unsure if it has something to do with these or not.
It’s not using localstorage. I’m using the IonicStorageModule in my app.module.ts which allows me to import Storage to use. Furth investigation shows me that it’s specifically my chrome browser that’s causing the issue.
If it uses the new Chromium rules, sure (and as sqllite is the new default for Chrome it seems, yes so it should work well if you write to SQLlite instead of indexDB).
I am not seeing anything in that thread indicating that IndexedDB is deprecated at all, and furthermore it is from 5 years ago, whereas you claim this is effective “beginning April '17”. Absent further information, I recommend people ignore @FrancoisIonic’s comments in this thread.
@rapropos Maybe you don’t manage website with some traffic, but it was clearly stated from January to March, a console warning stating “IndexDB is deprecated” in all windows google chrome versions of my visitors. After, IndexDB and WebStorage is now the same thing, it’s transparent now.
I’m sorry, but I did not see anything like that in the link you provided. Do you have any other documentation I can check out?
BTW: not sure if related, but I highly recommend OP get rid of “ionic-native” from their package.json and update all @ionic-native/*** to the same version. Specifically, if you have any native plugins >=3.6.0, your app will break unless @ionic-native/core is also >=3,6,0.
I’ve been using IndexedDB in many places for years and never saw such a warning.
When I say “using IndexedDB”, I mean directly - the API as defined here – not via Ionic or other libraries, just straight Javascript – never saw a warning about deprecation.
@rapropos no sorry, but this way a warning outside of the builds and Ionic, let’s say you have a website using IndexDB (mycase) and it was pulling warnings. It’s not the case any more.