MrZeeba / boss-master

An Android/IOs app designed to aid and assist scoring in Archery
1 stars 0 forks source link

CREATE Session is stored offline #45

Closed MrZeeba closed 3 months ago

MrZeeba commented 3 months ago

Ensure that when creating a session it's stored offline if we turn off online storage

MrZeeba commented 3 months ago

It appears that Firebase/store is not a tool to be used offline https://stackoverflow.com/questions/48871927/using-firebase-firestore-in-offline-only-mode.

I think I need to investigate segregating database interaction via an interface, then using dependency injection to store online if the user is a premium user. Otherwise data should be stored offline.

SQLite may come back into play as a potential option. https://medium.com/@dubaidevmarketing/top-10-local-databases-for-react-native-app-development-in-2023-5944bb58042e