This does not work anymore on iOS16 devices (but works on simulator).
Got this error : Encountered socket error:
The operation couldn’t be completed. (SSDP_Example.UDPSocketError error 0.)
I read your in-depth article on SSDP on your blog but I have a question, what is the suggested policy for dealing with a situation whereby a device is already online as our app starts up and:
It passively announced itself at time T = 0.
App starts at time T = 10. (So never saw 1.)
App probes for devices at time T = 20.
Device responds to probe at time T = 21 - alive msg
Device goes offline right afterwards, at time T = 22 - byebye msg
App sees the byebye before it sees the alive.
App see the alive after it sees the byebye
App thinks the device online but it is not.
Is it sensible to ignore byebye until after we've received an actively probed alive msg?
I've done SSDP and UPnP work some years ago for .Net and I'm just thinking of resuming this when this question came up!
Hey. I am a newbie and now trying to comprehend how SSDP works. Cloned your project and built on simulator, but it eventually never finds any device and ends up with such logs. I have not changed anything in the code, only cloned and installed the pods. Any ideas what I'm doing wrong? Thanks a lot in advance
Thank you for the project and the awesome blog post!
I've encountered an error while testing the example.
I was only able to get it working on an iPhone SE with iOS 14.4
On both iPad Air 4 with iOS 14.6 and iPhone XS Max with iOS 14.5.1 I get the following error:
SSDP-Example[402:7547] Encountered socket error: The operation couldn’t be completed. (SSDP_Example.UDPSocketError error 0.)
I added the Local Network Usage Description and disabled App Transport Security.