0
0
Firebasecloud~5 mins

Offline persistence in Firebase - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is offline persistence in Firebase?
Offline persistence allows your app to save data locally on the device so it can work without an internet connection and sync changes when back online.
Click to reveal answer
beginner
How do you enable offline persistence in Firebase Firestore for a web app?
You enable it by calling firebase.firestore().enablePersistence() before using Firestore.
Click to reveal answer
beginner
What happens to data changes made while offline in Firebase?
Changes are saved locally and automatically synced to the server when the device reconnects to the internet.
Click to reveal answer
intermediate
Name one limitation of Firebase offline persistence.
Offline persistence has limited storage size and may not support complex queries while offline.
Click to reveal answer
beginner
Why is offline persistence important for mobile apps?
It improves user experience by allowing the app to work smoothly without internet and prevents data loss during connection drops.
Click to reveal answer
How do you enable offline persistence in Firebase Firestore for a web app?
ASet offline: true in config
BCall firebase.firestore().enablePersistence()
CUse firebase.database().goOffline()
DNo action needed; it's automatic
What happens to data written while offline in Firebase Firestore?
AIt is saved locally and synced later
BIt is sent to the server immediately
CIt is lost until connection returns
DIt causes an error
Which Firebase product supports offline persistence by default on mobile?
AFirebase Hosting
BFirebase Authentication
CFirebase Firestore
DFirebase Cloud Functions
What is a common limitation of offline persistence in Firebase?
ANo local data storage
BRequires manual sync
CNo syncing when online
DLimited local storage size
Why is offline persistence useful for users?
AIt allows app use without internet
BIt speeds up internet connection
CIt disables data syncing
DIt deletes old data
Explain how Firebase offline persistence works and why it is useful.
Think about how apps keep working without internet and then update later.
You got /4 concepts.
    Describe how to enable offline persistence in Firebase Firestore and mention one limitation.
    Focus on setup steps and what might not work well offline.
    You got /4 concepts.