setHttpPostForced static method

  1. @Deprecated('This functions is deprecated, please use "setHttpPostForced" of CountlyConfig instead')
Future<String?> setHttpPostForced(
  1. bool isEnabled
)

Set to 'true' if you want HTTP POST to be used for all requests Should be call before Countly init

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;
}