enableParameterTamperingProtection static method
- @Deprecated('This functions is deprecated, please use "setParameterTamperingProtectionSalt" of CountlyConfig instead')
- String salt
Set the optional salt to be used for calculating the checksum of requested data which will be sent with each request, using the &checksum field Should be call before Countly init returns the error or success message
Implementation
@Deprecated('This functions is deprecated, please use "setParameterTamperingProtectionSalt" of CountlyConfig instead')
static Future<String?> enableParameterTamperingProtection(String salt) async {
log('Calling "enableParameterTamperingProtection":[$salt]');
log('enableParameterTamperingProtection is deprecated, use setParameterTamperingProtectionSalt of CountlyConfig instead', logLevel: LogLevel.WARNING);
if (salt.isEmpty) {
String error = 'enableParameterTamperingProtection, salt cannot be empty';
log(error);
return 'Error : $error';
}
List<String> args = [];
args.add(salt);
final String? result = await _channel.invokeMethod('enableParameterTamperingProtection', <String, dynamic>{'data': json.encode(args)});
return result;
}