The default behavior. The listener attempts to return initial snapshot from cache and retrieve
up-to-date snapshots from the Firestore server. Snapshot events will be triggered on local
mutations and server-side updates.
The listener retrieves data and listens to updates from the local Firestore cache without
attempting to send the query to the server. If some documents gets updated as a result from
other queries, they will be picked up by listeners using the cache.
Note that the data might be stale if the cache hasn’t synchronized with recent server-side
changes.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-11 UTC."],[],[],null,["# FirebaseFirestore Framework Reference\n\nFIRListenSource\n===============\n\n enum FIRListenSource : NSUInteger {}\n\nThe source the snapshot listener retrieves data from.\n- `\n ``\n ``\n `\n\n ### [FIRListenSourceDefault](#/c:@E@FIRListenSource@FIRListenSourceDefault)\n\n `\n ` \n The default behavior. The listener attempts to return initial snapshot from cache and retrieve\n up-to-date snapshots from the Firestore server. Snapshot events will be triggered on local\n mutations and server-side updates. \n\n #### Declaration\n\n Objective-C \n\n FIRListenSourceDefault\n\n- `\n ``\n ``\n `\n\n ### [FIRListenSourceCache](#/c:@E@FIRListenSource@FIRListenSourceCache)\n\n `\n ` \n The listener retrieves data and listens to updates from the local Firestore cache without\n attempting to send the query to the server. If some documents gets updated as a result from\n other queries, they will be picked up by listeners using the cache.\n\n Note that the data might be stale if the cache hasn't synchronized with recent server-side\n changes. \n\n #### Declaration\n\n Objective-C \n\n FIRListenSourceCache"]]