Skip to content

Can I use Firestore to make cheap browser games with cache persistence only? #7752

Answered by wu-hui
marcusx2 asked this question in Q&A
Discussion options

You must be logged in to vote

You would need to use PersistentCacheSettings and disableNetwork(). disableNetwork() needs to be called at the beginning of your app, and stay unchanged throughout. The SDK will attempt to send the local writes to server whenever enableNetwork() is called (which is the default when neither disableNetwork and enableNetwork is called.)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by marcusx2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants