I’m use rule with “variant” type. And each time when i star game at Editor i receive identical values. In Release this ok. But what if i want test other variants. Can i reset some cache?
What mechanism is used to identify that this is the same user? For example, on an android, a user can completely remove the application. And as I understand it, at the next installation, the cloud will set new values for them.
Hi Kodo! Thanks for reaching out about “variant” rules in Remote Config.
We determine what variant to show each user based on the “customUserId” in the request, if it has been set. So if you want to experience different variants in your Unity editor, all you need to do is manually change your customUserId to something else. You can set this using our ConfigManager API:
// Set the user’s unique ID:
ConfigManager.SetCustomUserID("some-user-id");
Setting your customUserId to something else will return a random variant, so if you are interested in FORCING your editor to experience a particular variant - you can temporarily set that variant’s “weight” to 100 to force all requests to return with that variant, even in your editor when you press “play”. You can do this either in the Remote Config Unity package UI, or on our web dashboard: https://app.remote-config.unity3d.com/