Is it possible to access NSURLSession
and related types via FFI from dart? I would like to use this bindings with Flutter on iOS.
If yes, could that be done with dart:ffigen
and how would I have to configure it? There are lots of samples for ffi, but I did not find accessing system frameworks.
The Dart team just released cupertino_http
networking package for macOS/iOS
which leverages the new Objective-C interop support to wrap Apple’s networking NSURLSession
library.
More info: https://medium.com/dartlang/dart-2-18-f4b3101f146c