I am trying to develop Flutter app which will run also on destkop. This app is using http package:
import 'package:http/http.dart'
When I am trying to perform http request I am getting this exception:
SocketException: Connection failed (OS Error: Operation not permitted, errno = 1), address = firebasedynamiclinks.googleapis.com, port = 443
This app is working on Android and iOS, how to enable this permission for macos?
I am using IntelliJ IDE, so this answer is not satisfying me Flutter - http.get fails on macos build target: Connection failed
You need to add:
<key>com.apple.security.network.client</key>
<true/>
to macos/Runner/DebugProfile.entitlements
and macos/Runner/Release.entitlements
.
This is documented here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With