I need to find a way to observe when my app stops publishing the service via bonjour. This happens usually when the device receives a call or some such interruption.
Background:
I'm using GCDAsyncSocket to communicate between 2 devices in the same network for an app which plays music (supports playback in background).
I use NSNetService to broadcast the IP and port for the other apps (clients) to connect to the server.
When the server device receives a phone call, the publishing stops and other devices won't be able to see this service.
Is there some particular property I need to observe so that I know when it has stopped and I can restart again.
Thanks in advance