react-native-udp
react-native-udp copied to clipboard
Does react-native-udp need changes for new iOS 14 Local Network Privacy?
With iOS 14 Apple introduced the new Local Network Privacy feature which prompts users first that an application wants to interface with devices on the local network.
For now, we are not seeing any prompt with react-native-udp although we're interfacing with the local network by performing device discovery, sending a datagram to the broadcast address of a router (255.255.255.255).
It seems weird that when we interface with UDP at this network level we would not see the prompt. Is this something that needs to be added to react-native-udp?
Also see this issue thread on the CocoaAsyncSocket repository which react-native-udp uses under the hood.
@thibmaek, thanks for the feedback! I don't know if this might be a CocoaAsyncSocket issue or react-native-udp must also update the iOS code. Sadly, I cannot test any iOS 14 device at the moment.
CocoaAsyncSocket is written in Objective-C and it is starting to show multiple deprecation warnings when compiling. I might have to look for another library for the long run. This problem might be fixed by switching to another iOS socket library.
If you find any more relevant info, please post on this issue!
Hi, I'll just leave this here, as this contains extremely useful information by an Apple employee concerning the new "Local Network Privacy" behavior: https://developer.apple.com/forums/thread/663858
Any update on this?
somebody is using this package for ios? is there anything we have to consider?
@rt012 As far as I know, Apple performed some fixes by now, which makes sure that the local network permission alert is properly triggered when using UDP. Apart from that, there's nothing special to take care of.