requestProxyPermission static method
Requests permission to set system proxy
This will show a dialog to the user asking for permission Returns true if permission was granted, false otherwise
Implementation
static Future<bool> requestProxyPermission() async {
if (!isSupported) {
return false;
}
try {
final result = await _channel.invokeMethod('requestProxyPermission');
return result == true;
} catch (e) {
if (kDebugMode) {
print('Error requesting proxy permission: $e');
}
return false;
}
}