setHttpPostForced static method
- @Deprecated('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
Implementation
@Deprecated('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;
}