Hello,
I have an app that was using the iOS 18 Network Framework APIs. It used Peer to Peer, QUIC and Bonjour. It was all working as expected. I wanted to upgrade to the new iOS 26 Network Framework APIs (NetworkBrowser, NetworkListener, NetworkConnection...).
I have things working (multiple devices can discover each other, connection to each other and send messages to each other) but my app crashes when I go to toggle of all the networking stuff.
In the iOS 18 Network Framework API NWConnection had a .cancel() function I could use to tell the other side the connection was done.
I dont see a cancel function for NetworkConnection.
My question is - how do I properly close down a NetworkConnection and also properly tell the other side the connection is done.