Remote configuration for Cocoa apps
Remote Config enables you to change the behavior or appearance of the app by making changes to the server side values. To add the parameters and conditions in the Remote Config UI, refer to the user guide.
Installation
Add the below to your podfile.
Copied
Import
- Add the parameters and conditions in the Remote Config UI, refer to the user guide.
Enable Remote Config
Fetch and activate configurations
- To fetch and activate configurations from the server, call the fetchAndActivate() method.
Fetch config with completion handler
Listening for Remote config updates
Fetch string value with cold fetch and fallback
By, default values will not be fetched from the network to every fetch call; the fetchValue/fetchValues method will return cached values, if the values were recently fetched from the network. The coldFetch parameter can be enabled if you need fetch value methods to always fetch and return the current value from the network.
Enable the coldFetch parameter with caution, since only three fetch calls are allowed per minute. Any further calls will return null/default values.
Custom condition criteria
Use the below method to set the custom condition criteria.