Hi, I am trying send data multicast address via using NWConnectionGroup, I tried below code at iOS 15 version it works, it sends data and I received sended data, but When I try at iOS 17 version it connects successfully url and port, but it doesn't sending data, Why I can't send data from iOS 17 version, Can I need get specific permission
func init() {
var group: NWConnectionGroup!
connect(withHost: "235.10.10.100", port: 3333)
}
func connect(withHost: NWEndpoint.Host, port: NWEndpoint.Port) {
let multicast = try! NWMulticastGroup(for: [.hostPort(host: withHost, port: port)])
group = NWConnectionGroup(with: multicast, using: .udp)
group.setReceiveHandler(maximumMessageSize: 128) { message, data, b in
print("Received message:")
}
group.stateUpdateHandler = { (newState) in
print("Group entered state \(String(describing: newState))")
}
group.start(queue: .global())
}
func sendData() { let groupSendContent = Data("helloAll".utf8) self.group.send(content: groupSendContent) { error in (error) print("Send complete with error (String(describing: error))") } }