Not sure if someone else came across a similar issue before. When I create a remote config parameter and choose it as a boolean with no conditional values. In my iOS project, firebase can read it correctly. However, when I start using conditional statements, where it is checking if the user is in a particular location e.g. UK in the image below.
When setting up this param, I did the following:
Every time I am accessing the “test_country” parameter, it is showing me the default value of false, rather then the expected “true”. I looked through different questions on stack overflow and set
configSettings.minimumFetchInterval = 60
in debug mode to fetch quicker then the recommended 12 hours in production and ever tried another stack overflow recommendation of setting the
remoteConfig.fetch(withExpirationDuration: 0)
to zero, to force fetch from remote . Just to ensure its not a fetching issue.
Any suggestion what could be going wrong? I'm not sure what more information is needed to help in this case, please let me know.
I've looked through the following questions:
- FirebaseRemoteConfig fetchAndActivate not updating new value
- Firebase Remote Config fetch doesn't update values from the Cloud
- And many more, even posted the question on Firebase slack page.