JSON Remote Configs
While not typically used, sometimes it’s more efficient to paste raw json remote configs into UserWise. These are frequently used for things like level setup or economy setup.
In UserWise’s SDK we give you three Remote Config Events you can listen to:
public event EventHandler OnLoaded
This event is triggered when the UserWise SDK has finished loading and the response from UserWise has returned. This will include both remote configs that are currently available and upcoming for this player.
public event EventHandler OnActive
This event is triggered for each Remote Config once it has loaded and is now active.
public event EventHandler OnInactive
Very similar to above this method triggers when a Remote Config is no longer active.
RemoteConfigsModule remoteConfigsModule = this.userwise.RemoteConfigsModule;
remoteConfigsModule.OnLoaded += RemoteConfigEventHandler.OnLoaded;
remoteConfigsModule.OnActive += RemoteConfigEventHandler.OnActive;
remoteConfigsModule.OnInactive += RemoteConfigEventHandler.OnInactive;
More detailed example can be found here. The external_id
is probably the most important bit to switch on - e.g. if you have the economy
json config then this is how you interpret and handle the values, etc.
Powered by UserWise