tradle / react-native-udp

node's dgram for react-native
MIT License
340 stars 155 forks source link

Not Working in IOS 16.0 #222

Closed piyush2greedy closed 1 year ago

piyush2greedy commented 2 years ago

After updating my phone to ios 16.0. Not able to get local devices in the network. There are no devices coming after the ios 16.0 update.

In previous versions, it was working fine.

This is breaking production. Can someone please look into it?

@mvayngrib @fnando @aprock @Rapsssito @eliaslecomte Please help.

evan1715 commented 2 years ago

sadly, it's Apple being Apple. from what i've read, in iOS 16, they've "enforced" (their fancy word for 'fixed a bug') something they've written back in iOS 14.5. it requires their 'multicast entitlement.' you must request the permission from Apple. we've submitted our request today and i am hoping that this will fix the issue. it's possible that this package or other things must be done still, but i do not know at the moment.

this potentially means that all previous versions of anyone's app will now be broken on iOS 16 without a patch if they require UDP to function. i doubt they back track this permission and blanket all previous versions with it since once this permission is granted, it must be signed through xcode.

sources: -> user post --> same forum FAQ -> network multicast entitlement --> request permission from Apple itself

hubciorz commented 2 years ago

@evan1715 I am not sure. The source of the problem is somewhere else I think. We do have the multicast entitlement and UDP stops working after a certain amount of time. Killing the app does not usually help. Rebooting the phone helps every time. I have no idea what's wrong. On iOS 15 everything seems to be fine.

Did you receive the entitlement and it helped?

evan1715 commented 2 years ago

we're still waiting for 2+ weeks for apple to get back to us with multicast. i'll let you know how it goes when apple gets back to us. let me know what you find out with the udp.

hubciorz commented 2 years ago

@evan1715 Any news? We did not really get any response from Apple. One day the entitlement was just available to be enabled on developer.apple.com.

evan1715 commented 1 year ago

@hubciorz Got the entitlement. Same way you got it, without an acknowledgement that they did it. I'm not seeing any major issues with UDP so far.

On occasion, it will stop working or the bind function will throw an error, crashing it only on iOS (even though it's wrapped in try-catch) after a socket creation fails. When it does stop working (after sitting in the app with the screen on for at least 15 minutes), placing the app in the background then bringing it back to the foreground restores it. However, that is also after an unrealistic time frame of the app being open with the display remaining on.

These are only from my testing (except the bind issue) and I don't have any repeated customer complaints that I've heard of. Perhaps as time goes by, I will hear something, but at the moment, it seems ok.

bartoszboruta commented 1 year ago

Any updates?

Alessio92 commented 1 year ago

Same issue here, our customers are reporting this behaviour.. Is there any workaround?

mvayngrib commented 1 year ago

sorry guys, i don't have the bandwidth to dig into this 😓

github-actions[bot] commented 1 year ago

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community attention? This issue may be closed if no further activity occurs.