Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Can I use Firestore locally for free?

I’m making an iOS retail app.

Currently, whenever the user makes a change to the draft order, I save it to the relative order document, to which the client is also listening, so each edit to the draft order by the user accounts for one read and one write.

Since the user is the only person that can see their draft order, it would make more sense, to save money, to edit it locally and only upload it to the remote database once in a while, like when the app enters the background and when the user pulls down to refresh the order page.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I guess I could CryptoKit or something to save the order locally in a secure manner, but I would find it easier to just use Firestore locally for free. Honestly I’ve never looked at CryptoKit and I’ve only scratched the surface with other iOS persistency technologies, so maybe plists could be considered secure enough for my use case.

In any case, can I use Firestore locally for free?

I guess not, but it would be a very useful feature.

Feel free to give me any suggestions.

Please note that I want to save the order on the device’s disk for every change so that data isn’t lost in case of a crash.

>Solution :

The Firestore emulator is free. So is the Firebase emulator suite, which includes a Firestore emulator.

The Firestore cloud service has a free monthly quota.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading