remoteConfigUpdate static method

  1. @Deprecated('This function is deprecated, please use "remoteConfigDownloadValues" instead')
Future<String?> remoteConfigUpdate(
  1. dynamic callback(
    1. String?
    )
)

Replace all stored remote config values with new ones from the server. returns the error or success message

Implementation

@Deprecated('This function is deprecated, please use "remoteConfigDownloadValues" instead')
static Future<String?> remoteConfigUpdate(Function(String?) callback) async {
  if (!_instance._countlyState.isInitialized) {
    String message = '"initWithConfig" must be called before "remoteConfigUpdate"';
    log('remoteConfigUpdate, $message', logLevel: LogLevel.ERROR);
    return message;
  }
  log('Calling "remoteConfigUpdate"');
  final String? result = await _channel.invokeMethod('remoteConfigUpdate');

  callback(result);
  return result;
}