ios - How can I set a default using a String instead of a plist in Firebase Remote Config? -


i'm trying define default value firebase remote config setup.

but i'm not using plist , have no intention to, since have setup , working strings (via struct) constants.

with plist, syntax is:

remoteconfig.setdefaultsfromplistfilename("remoteconfigdefaults")

but, there way define default value using string?

in other words, have value, string:

constants.urls.feedfallback = "https://www.mywebsite.com/stuff/"

i want pass in sedefaults() somehow. possible? syntax?

you want use firremoteconfig.remoteconfig().setdefaults() method, allows supply nsdictionary instead of plist file. (in swift you'll using dictionary of type [string: nsobject])

just load dictionary keys , constants, , should set.


Comments