updateRemoteConfigExceptKeys static method
- @Deprecated('This function is deprecated, please use "remoteConfigDownloadOmittingValues" instead')
Replace remote config values (except provided keys) with new ones from the server. returns the error or success message
Implementation
@Deprecated('This function is deprecated, please use "remoteConfigDownloadOmittingValues" instead')
static Future<String?> updateRemoteConfigExceptKeys(List<String> keys, Function(String?) callback) async {
if (!_instance._countlyState.isInitialized) {
String message = '"initWithConfig" must be called before "updateRemoteConfigExceptKeys"';
log('updateRemoteConfigExceptKeys, $message', logLevel: LogLevel.ERROR);
return message;
}
String keysString = keys.toString();
log('Calling "updateRemoteConfigExceptKeys":[$keysString]');
if (keys.isEmpty) {
String error = 'updateRemoteConfigExceptKeys, keys List is empty';
log(error, logLevel: LogLevel.WARNING);
}
log(keys.toString());
final String? result = await _channel.invokeMethod('updateRemoteConfigExceptKeys', <String, dynamic>{'data': json.encode(keys)});
callback(result);
return result;
}