vite-pwa/vite-plugin-pwa

Sqlite or database in users phone

alesha2911 opened this issue · 8 comments

How can i keep a database in users phone ?. May be sqlite. Only in users phone. Not browers a database.

You can use indexeddb, it is an sqlite database. If the database is complex or can change frequently, check dexie.

You can also check https://sqlite.org/wasm/doc/trunk/about.md.

@userquin using indexeddb where does data stored? if my app installed on a phone does all this data stored in local wrapper browser instance or maybe in global browser scope?

It is stored per host globally, check devtools application tab, search indexed db, you can access db also from service workers and web workers.

Beware with safari and ff: on safari there are some limitations (50mb only) and ff will not work in private browsing.

@userquin okay, got it, thank you!

@userquin thank you, good day )

@userquin https://whatpwacando.today/ . PWA Vite Plugin support current function ?

@alesha2911 what do you mean?

@userquin PWA Vite Plugin support function Authentication, Face detection, Notifications, Geolocation ?