My app is Scanning UDP in iPhone16.x series but not in iPhone 15.x series.

Hello Apple Support team,

Steps tried out till now to resolve the scan issue for POS machines(Android Devices) in iOS 15.x:

  1. Changed UDP Listener’s Port Numbers according to the mentioned port numbers on Apple’s website.
  2. Checked the Network Framework provided by Apple for any related methods/properties that can resolve the issue.
  3. Updated the Deployment target from iOS 13.x to iOS 15.x for POSLib SDK in order to set the Network’s parameter attribution to the user so that networking performed using these parameters is directed to content specified by the user, not the developer.

As per the R&D done till now, it appears the UDP connection is established properly and data is sent to the server but when we receive the data it is nil and also connection is cancelled.

Thanks & Regards

You tagged your thread with Multipeer Connectivity and Network, where the latter implies the Network framework. Which API are you using?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Hello Apple Team,

We are using the NWConnection class to establish the UDP connection. We have added NWEndpoint.Host to broadcast UDP connection along with NWEndpoint. port number. Also, we are using a TCP listener port (NWListener) to listen to the UDP broadcast. When we send UDP requests in iOS15.x devices the request is sent successfully but when we try to listen to the response we get a cancelled request.

Business requirement:

  1. Broadcast the UDP message to the local network
  2. Devices will catch the broadcast and process the broadcast message
  3. Devices will open TCP connection for iPhones listening to port and respond back
  4. What we observed is that we are able to receive the responses in iOS 16.x devices, but not in iOS 15.x devices. One more observation is that in iOS 15.x simulator, we are receiving the response, but not in iPhones.

Thanks.

My app is Scanning UDP in iPhone16.x series but not in iPhone 15.x series.
 
 
Q