Bonsoir icon indicating copy to clipboard operation
Bonsoir copied to clipboard

Deprecation of NetService

Open Skyost opened this issue 3 years ago • 2 comments

NetService has been deprecated in iOS 15.0 and macOS 12.0 (source). We should move on to NWBrowser, which is only available since iOS 13.0.

Skyost avatar Jul 27 '22 11:07 Skyost

Hi, I am also having trouble getting this plugin run, I am developing it for iOS 12+ but it is giving me. Same error,

In how much time u think it will be resolved?

chetan-SMRI avatar Aug 02 '22 12:08 chetan-SMRI

@chetan-SMRI It should still work on iOS 12, it's just that NetService will be removed in a future version of iOS.

Skyost avatar Aug 07 '22 13:08 Skyost

Just did a little bit of research but had encountered a problem. The Network framework (which is considered to be the replacement of NetService) does not support the Bonjour resolve operation. This means that we must use the NetService API for that.

See : https://developer.apple.com/forums/thread/673771?answerId=662293022#662293022.

Skyost avatar Jul 31 '23 18:07 Skyost

There's also seem to have some problems with broadcast arbitrary ips and ports.

Skyost avatar Jul 31 '23 21:07 Skyost