Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sqlite or database in users phone #719

Closed
alesha2911 opened this issue May 28, 2024 · 8 comments
Closed

Sqlite or database in users phone #719

alesha2911 opened this issue May 28, 2024 · 8 comments

Comments

@alesha2911
Copy link

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

@userquin
Copy link
Member

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.

@Jeree-TheOne
Copy link

@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?

@userquin
Copy link
Member

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.

@Jeree-TheOne
Copy link

@userquin okay, got it, thank you!

@alesha2911
Copy link
Author

@userquin thank you, good day )

@alesha2911
Copy link
Author

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

@userquin
Copy link
Member

@alesha2911 what do you mean?

@alesha2911
Copy link
Author

alesha2911 commented May 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants