Data offline


#1

Hello, I doing a PWA, I need data persistence offline on the browser but I don’t have idea how to use cookies or something like that on Ionic.

Can I use LocalStorage with SQLite?

I get data from a server through Socket.io, but I want that if you do not have internet, you can continue browsing with a backup done in some way

Firebase does it somehow, but I still do not know how it works


#2

Yes, use the Storage plugin

Looks like it prioritizes SQLite, then uses various fallbacks if that’s not available.


#3

Thanks, I had not read this