-
I'd like to know if it's possible to use Firestore to make those cheap browser games where the user's save game only persists until the user clears his browser's cache. So I'd like to use Firestore to persist offline and between browser sessions, but only until the cache is cleared. There would be no need to actually store anything in Firebase. I guess I would need to configure offline persistence? What's the best configuration for this use case? The data doesn't have to ever be stored to Firebase. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You would need to use |
Beta Was this translation helpful? Give feedback.
You would need to use
PersistentCacheSettings
anddisableNetwork()
.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 wheneverenableNetwork()
is called (which is the default when neitherdisableNetwork
andenableNetwork
is called.)