This commit enables Firestore's offline persistence.#1
Open
ElecTream wants to merge 1 commit into
Open
Conversation
…art of the note syncing functionality. The application already had most of the sync functionality implemented, including user authentication, a Firestore data structure, and real-time stream providers. However, offline persistence was not explicitly enabled, which is why the app would not function correctly without an internet connection on all platforms. This change adds the necessary configuration to `main.dart` to enable Firestore's offline cache. With this change, notes can be created, edited, and deleted while offline, and all changes will be automatically synced with the server when the connection is restored. This completes the user's request for an account sync functionality with offline storage.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The application already had most of the sync functionality implemented, including user authentication, a Firestore data structure, and real-time stream providers. However, offline persistence was not explicitly enabled, which is why the app would not function correctly without an internet connection on all platforms.
This change adds the necessary configuration to
main.dartto enable Firestore's offline cache. With this change, notes can be created, edited, and deleted while offline, and all changes will be automatically synced with the server when the connection is restored. This completes the user's request for an account sync functionality with offline storage.