iOS 14 UDP

With the latest update I'm unable to receive a UDP broadcast. I've tested this with a device that is on the previous OS and the current iOS 14 update. The previous version works as intended. Is this bug or does something need to be modified for instance in the plist possibly? I've tested a few other apps that offer a listener for UDP those appear to not be working as well. I've searched for information on this issue with no resolute as of now.
Answered by Bnjbel97 in 636383022
To add some more information. I'm using AsyncUdpSocket. This is just for binding to a port and receiving UDP. I'm not broadcasting nor is this multicasting. The last time this stopped working was in iOS 11.4 I believe. With that particular incident it appeared to be a bug within the update since the next patch resolved the issue.

From reading I can see Apple has added in a Local Network Privacy. I don't believe this is the same however I did add the Privacy Local Network to the plist along with description to see. This however seemed to have no affect. Walking through the code it looks as if the UDPSocket is being bound without error however the on udpsocket is never being fired when receiving data. I have verified that data is being sent to the correct port in which it is bound.
Accepted Answer
To add some more information. I'm using AsyncUdpSocket. This is just for binding to a port and receiving UDP. I'm not broadcasting nor is this multicasting. The last time this stopped working was in iOS 11.4 I believe. With that particular incident it appeared to be a bug within the update since the next patch resolved the issue.

From reading I can see Apple has added in a Local Network Privacy. I don't believe this is the same however I did add the Privacy Local Network to the plist along with description to see. This however seemed to have no affect. Walking through the code it looks as if the UDPSocket is being bound without error however the on udpsocket is never being fired when receiving data. I have verified that data is being sent to the correct port in which it is bound.
I resolved this issue. This app has been around for sometime. Some pieces that have been working have not been moved forward as I would like unfortunately. Upon moving the target version to iOS 12, I started receiving the binding error. My initial thought was not understanding the lengths of the Privacy Local Network and that it may be affecting this. This was not the case. If others come across this issue wondering this, the additions of Privacy Local Network in iOS 14 did not affect me in just receiving UDP messages.
Hi, I may be having a similar issue. What binding error did you receive? How did you end up solving this? Apologies I can't figure out the solution from your last post.
Hi, we have the same issue in our app (made with Unity). Its using UDP for communication. With the iOS 14 Update the networking functionality stopped working. Were you able to resolve this?

@Bnjbel97


I too am having a similar issue (https://developer.apple.com/forums/thread/664545)

My program binds correctly but no data is ever received, even though I can see the packets being sent over the local network. It worked fine in iOS 13, but since moving the app to iOS 14, it has decided to stop working.

In your previous message you said that you resolved the issue but I fail to see how you resolved it?
I am using udp socket in my application. My application has been working since iOS 6 via WiFi or LET. Also, I am not use broadcasting and multi-casting.
However my application can send/receive udp packets on iOS 14 via WiFi, but when I set LET instead of WiFi, the application can not send udp packets.
The testing network provider is SPRINT.
I am not sure iOS14 blocks udp packets via LET or SPRINT blocks udp packets.

I have a server and I can check the udp packets transaction.
So, when the application can not send udp packets via LET. Because the server dose not show udp packets transaction.
However when the iOS device sets WiFi, the application can send udp packets.
We also have this issue exclusive to iOS 14.

Our app uses a PacketTunnelProvider VPN extension. It essentially acts as a "local tunnel" to listen for DNS queries on the interface, block adult content, and write back the packets to the interface via UDP packets.

Our app has worked fantastically until users updated to iOS 14. We are totally unable to find a solution to this issue and are starting to believe the issue may not with us but rather with iOS.
iOS 14 UDP
 
 
Q