Supplying defaults is one of the steps when using RemoteConfig. It usually looks something like this:
let sefaults: [String: NSObject] = [
"key1" : "value1" as NSObject,
"key2" : "value2" as NSObject
]
FIRRemoteConfig.remoteConfig().setDefaults(defaults)
I've found RemoteConfig works perfectly fine without the above. Is the above necessary? Also, what is it doing? Seems to be a no-op.
No it is not necessary to provide defaults. However, if you don't your app will use the static default of the type you have defined (the static default value of a string, a boolean etc)
The way in which Firebase Remote Config decides on a value can be described as follows:
setDefaults()
)More info can be found here : https://firebase.google.com/docs/remote-config/