I am developing a personal health record management app for Android which currently uses Firestore as its backend.
I want to offer a free version of the app which stores data only on the device.
Once the user purchases a monthly subscription I would like to switch back over to Firestore.
What's the best way to implement such a setup? Even if it was possible, it doesnt seem like a good idea to force Firestore to use its offline cache all the time.
Should I use a second database to store data on device and migrate the data to Firestore after the in-app purchase? If so, what can I do in terms of database choice and system architecture to make my life easier?