Version Status for Remote Firebase Configuration

The version status of the Firebase Remote Config application seems to be ignored. I made the following setup to play with my current development version:

xCode Version setup: enter image description here

Firebase Remote Configuration Configuration: enter image description here

FIRRemoteConfig will not return the correct parameter values.

+7
ios firebase-remote-config
source share
5 answers

His famous mistake is that instead of the version value, FB uses the build value. The only possible workaround is to put the same value to build. Therefore, in your case, it should be like "version: 1.1.8" and "build: 1.1.8". Or you can use the build value and update the value each time the application is released.

+4
source share

It should work. In fact, you should use the assembly as a version. The problem may be cache or "Post Changes"

+2
source share

You are using the correct version of the application.

Try setting the expiration date to 0 to get a new selection. Also make sure that your selection is not throttled, that you are getting the cache result from a previous successful selection.

+1
source share

The documentation in the remote Firebase configuration says that AppVersion is a CFBundleVersion application. You use the build number as AppVersion. For an application, it may contain the same build number for multiple versions of the application. Try changing the condition and check it.

0
source share

Alternatively, you can add a "Custom Property" to Firebase, such as "app_version". Then, when the application starts, add the following code:

let version = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as! String Analytics.setUserProperty(version, forName: "app_version")

Then you can use this Custom property in Remote Config as a condition, and voila is the base value of the Remote Config parameter for the version number. Please note that this will also require the use of Firebase Analytics.

Adding a Firebase Custom Property

0
source share

All Articles