File tree Expand file tree Collapse file tree 2 files changed +3
-25
lines changed Expand file tree Collapse file tree 2 files changed +3
-25
lines changed Original file line number Diff line number Diff line change 1+ # 10.12.0
2+ - [ fixed] Fix issue of real-time listeners not being properly removed. (#11458 )
3+ - [ fixed] Fix real-time fetches not being able to fetch the latest template due to an in-progress fetch. (#11465 )
14# 10.7.0
25- [ feature] Added support for real-time config updates. Use the new ` addOnConfigUpdateListener ` API to get
36 real-time updates. Existing [ ` fetch ` ] ( https://firebase.google.com/docs/reference/swift/firebaseremoteconfig/api/reference/Classes/RemoteConfig#fetch )
Original file line number Diff line number Diff line change @@ -208,31 +208,6 @@ - (void)realtimeFetchConfigWithNoExpirationDuration:(NSInteger)fetchAttemptNumbe
208208 if (strongSelf == nil ) {
209209 return ;
210210 }
211-
212- // Check if a fetch is already in progress.
213- // TODO: for this case should we still return a SUCCESS status?
214- if (strongSelf->_settings .isFetchInProgress ) {
215- // Check if we have some fetched data.
216- if (strongSelf->_settings .lastFetchTimeInterval > 0 ) {
217- FIRLogDebug (kFIRLoggerRemoteConfig , @" I-RCN000052" ,
218- @" A fetch is already in progress. Using previous fetch results." );
219- FIRRemoteConfigUpdate *update =
220- [self ->_content getConfigUpdateForNamespace: self ->_FIRNamespace];
221- return [strongSelf reportCompletionWithStatus: strongSelf->_settings.lastFetchStatus
222- withUpdate: update
223- withError: nil
224- completionHandler: nil
225- updateCompletionHandler: completionHandler];
226- } else {
227- FIRLogError (kFIRLoggerRemoteConfig , @" I-RCN000053" ,
228- @" A fetch is already in progress. Ignoring duplicate request." );
229- return [strongSelf reportCompletionWithStatus: FIRRemoteConfigFetchStatusFailure
230- withUpdate: nil
231- withError: nil
232- completionHandler: nil
233- updateCompletionHandler: completionHandler];
234- }
235- }
236211 // Check whether cache data is within throttle limit.
237212 if ([strongSelf->_settings shouldThrottle ] && !hasDeviceContextChanged) {
238213 // Must set lastFetchStatus before FailReason.
You can’t perform that action at this time.
0 commit comments