Posts

Post marked as solved
25 Replies
Stumbled across this post and solution and then found that NetService has finally been deprecated as you thought would happen. Wondering if the Network framework has a solution for this now. I found this SO post: https://stackoverflow.com/questions/60579798/how-to-resolve-addresses-and-port-information-from-an-nwendpoint-service-enum-ca which suggests using a NWConnection and connecting to the service and then discarding the connection after finding the host/port and using that elsewhere. Not great, but likely would work. Also links to this even older thread https://developer.apple.com/forums/thread/122638 you answered as well. I'm using a third party C library that handles all the traffic between server/client. I'm adding a bonjour frontend to advertise things which is why I can't use the NWConnection and instead need the host/port to pass in. Thanks
Post not yet marked as solved
2 Replies
Also running into this. Did you file a feedback for it? If so, any movement? Similarly attempting to show from a confirmationDialog has the same problem. Shows up but tapping it doesn't present the share sheet.