RemoteConfig external object allows interacting with a remote configuration service to fetch new configuration values and apply them, and also to read the values for a given configuration.
Indicates the timestamp of the last time the configuration was fetched successfully from the server.
Note:
- if the Remote Configuration Property is set to None, or if the values haven’t been fetched yet, it returns the empty DateTime. If the last fetch resulted in an error, the DateTime returned corresponds to the previous fetch.
- this property also takes into account fetch operations performed automátically.
Returns the last fetch status.
Returns True if there is a value with the given key (being it a default value or a value fetched from the server), False otherwise.
Returns the configured value for the given key as a String.
Considerations:
- If the value has been fetched from the server, it returns that value. If not, the default value is returned. If there is no value from the server, nor a default value, the empty String is returned.
- If the Remote Configuration Provider is set to None, this method returns the empty string.
Returns the configured value for the given key as a number without decimals.
Considerations: same consideration as from GetStringValue apply.
Returns the configured value for the given key as a number with decimals.
Considerations: same consideration as from GetStringValue apply.
Returns the configured value for the given key as boolean.
Considerations: same consideration as from GetStringValue apply.
Returns the configured value for the given key as a date.
Considerations: same consideration as from GetStringValue apply.
Returns the configured value for the given key as a date-time.
Considerations: same consideration as from GetStringValue apply.
Tries to get the values synchronically from the server. Returns True if successful, False otherwise.
Return value |
Boolean |
Parameters |
(none) |
If the Remote Configuration Provider is set to None, this method returns False and finishes immediately.
Tries to apply the values fetched by the last fetch operation (being it automatic or manual). Returns True if successful, False otherwise.
Return value |
Boolean |
Parameters |
(none) |
If the Remote Configuration Provider is set to None or if there are no fetched values, this method returns False and finishes immediately.
Enumerated domain returned by the LastFetchStatus property.
Value |
Description |
None |
The Fetch operation has never been performed |
Sucess |
The last Fecth operation ended successfuly |
Failure |
The last Fecth operation could not be completed |
See the Examples section in Remote Configuration in Native Mobile apps.
Platforms |
Native Mobile (Android, iOS) |
This external object is available as form GeneXus 17 upgrade 4.