Open wynlo opened 1 year ago
I just realized after many many hours that it doesn't work on web or even android studios emulator - but it does work on real device
Maybe this can be included in the docs, but it is also not really Ionic Storage's issue
Hi, I want to move from IndexedDB to SQLite and I am currently trying out the SQLite installation instructions. I've created a StorageService that specifies a custom driver implementation and I am trying to run my Ionic application in the browser.
When I include Drivers.IndexedDB in the driverOrder list even though CordovaSQLiteDriver is placed first and defined, Ionic Storage defaults to IndexedD and ignores CordovaSQLiteDriver.
When I comment out IndexedDB, the following exception is raised:
The same issue happens when I am testing in an iOS simulator.
Would really appreciate any advice on how to resolve this issue or if I am missing out on something. Am I supposed to instantiate SQLite somewhere else first?
Here are the files that I am using:
app.module.ts
storage.service.ts