Is there a way to fetch a single remote config instead of fetching the whole thing?
Whats your use case? As there might be a better way to do it.
I’m currently using FetchConfigsAsync
this function to fetch all my configs, but I was wondering if there was a way to fetch a single config using a key and not update every other configs.
There’s a situation where I just need to check if one config value is updated, and I don’t want to fetch everything else just because of that one config. I am assuming this could be a problem? when I have many other configs with long values.
1 Like
You can:
- Use the filterAttributes structure to provide custom filter-category attributes in order to reduce the payload.
- Use Rest API and filter a key.
c# solutuion:
public struct filterAttributes {
// Optionally declare variables for attributes to filter on any of following parameters:
public string[] key;
public string[] type;
public string[] schemaId;
}
// Example on how to fetch configuration settings using filter attributes:
var fAttributes = new filterAttributes();
fAttributes.key = new string[] { "sword","cannon" };
RemoteConfigService.Instance.FetchConfigs(new userAttributes(), new appAttributes(), fAttributes);
1 Like
ohh that is how you use it. thank you!
1 Like