From a5b3185ed372fc16b5430c230c197e3dbd34f953 Mon Sep 17 00:00:00 2001 From: rsgowman Date: Wed, 18 Apr 2018 10:30:37 -0400 Subject: Add GetOptions for controlling offline get behaviour (#655) Add option to allow the user to control where DocumentReference.getDocument() and CollectionReference.getDocuments() fetches from. By default, it fetches from the server (if possible) and falls back to the local cache. It's now possible to alternatively fetch from the local cache only, or to fetch from the server only (though in the server only case, latency compensation is still enabled). --- Firestore/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Firestore/CHANGELOG.md') diff --git a/Firestore/CHANGELOG.md b/Firestore/CHANGELOG.md index 9f53593..77d823a 100644 --- a/Firestore/CHANGELOG.md +++ b/Firestore/CHANGELOG.md @@ -24,6 +24,10 @@ `FIRServerTimestampBehavior` on `DocumentSnapshot`. Instead of calling `data(SnapshotOptions.serverTimestampBehavior(.estimate))` call `data(serverTimestampBehavior: .estimate)`. Changed `get` similarly. +- [changed] Added ability to control whether DocumentReference.getDocument() and + Query.getDocuments() should fetch from server only, cache only, or attempt + server and fall back to the cache (which was the only option previously, and + is now the default.) # v0.11.0 - [fixed] Fixed a regression in the Firebase iOS SDK release 4.11.0 that could -- cgit v1.2.3