title: Firebase Remote Config not updating values?
body: <p>I'm setting up an AB test using Firebase Remote Config and I'm trying to get the app to print a value depending on which group it's in. But, the values aren't updating even though it says the values have been retrieved. </p>
  
  <p><code>AppDelegate</code>:</p>
  
  <pre><code>var window: UIWindow?
  var remoteConfig:RCValues!
  
  func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -&gt; Bool {
  
      FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions)
  
      FirebaseApp.configure()
      self.remoteConfig = RCValues.sharedInstance
  
      return true
  }
  </code></pre>
  
  <p>I have a <code>RCValues</code> file:</p>
  
  <pre><code>enum ValueKey: String {
      case pricing
  }
  
  class RCValues {
  
      static let sharedInstance = RCValues()
      var loadingDoneCallback: (() -&gt; ())?
      var fetchComplete: Bool = false
  
      private init() {
          loadDefaultValues()
          fetchCloudValues()
      }
  
      func loadDefaultValues() {
          let appDefaults: [String: Any?] = [
              ValueKey.pricing.rawValue: "Control"
          ]
          RemoteConfig.remoteConfig().setDefaults(appDefaults as? [String: NSObject])
      }
  
      func fetchCloudValues() {
          let fetchDuration: TimeInterval = 0
          activateDebugMode()
          RemoteConfig.remoteConfig().fetch(withExpirationDuration: fetchDuration) {
              [weak self] (status, error) in
  
              if let error = error {
                  print ("Uh-oh. Got an error fetching remote values \(error)")
                  return
              }
  
              RemoteConfig.remoteConfig().activateFetched()
              print ("Retrieved values from the cloud!")
              self?.fetchComplete = true
              self?.loadingDoneCallback?()
          }
      }
  
      func activateDebugMode() {
          let debugSettings = RemoteConfigSettings(developerModeEnabled: true)
          RemoteConfig.remoteConfig().configSettings = debugSettings
      }
  
      func string(forKey key: ValueKey) -&gt; String {
          return RemoteConfig.remoteConfig()[key.rawValue].stringValue ?? ""
      }
  
  }
  </code></pre>
  
  <p>Then I use the <code>pricing</code> value when I want to check what group the user is in: </p>
  
  <pre><code>let group = RCValues.sharedInstance.string(forKey: .pricing)
  print("your group is: \(group)")
  </code></pre>
  
  <p>But no matter what I do, I always end up getting "Control" printed, which is the default value I've set in the <code>RCValues</code> file for <code>pricing</code>. If I set it to something else in that file, it prints that.</p>
  
  <p>What am I doing wrong? </p>