iOS Swift: Firebase Remote Config fetch values

Viewed 2144

Is there a way or delegate to catch the updated values while the app is running without terminating the app. I am using this method to fetch the values and update.

    RemoteConfig.remoteConfig().fetch(withExpirationDuration: duration) { [weak self] (status, error) in

        guard error == nil else {
            print("Got an error fetching remote values \(error!)")
            return
        }

        print ("Retrieved values from the cloud!")

        RemoteConfig.remoteConfig().activateFetched()

        guard let strongSelf = self else { return }
        strongSelf.updateWithRomteConfigValues()

    }
1 Answers
Related