setHttpPostForced static method
- @Deprecated('This functions is deprecated, please use "setHttpPostForced" of CountlyConfig instead')
- bool isEnabled
Set to 'true' if you want HTTP POST to be used for all requests Should be call before Countly init returns the error or success message
Implementation
@Deprecated('This functions is deprecated, please use "setHttpPostForced" of CountlyConfig instead')
static Future<String?> setHttpPostForced(bool isEnabled) async {
log('Calling "setHttpPostForced":[$isEnabled]');
log('setHttpPostForced is deprecated, use setHttpPostForced of CountlyConfig instead', logLevel: LogLevel.WARNING);
List<String> args = [];
args.add(isEnabled.toString());
final String? result = await _channel.invokeMethod('setHttpPostForced', <String, dynamic>{'data': json.encode(args)});
return result;
}