Unable to use NWBrowser on watchOS ?

I created a NWBrowser and when listening to the stateUpdateHandler callback, it always returns error "-65563: ServiceNotRunning". It indicates that the "Background daemon not running".

Is there something else that needs to be set up in order for this to work, or is NWBrowser not actually available on watchOS?

NSBrowser is listed as available on watchOS 6+, why would this not be able to used?
https://developer.apple.com/documentation/network/nwbrowser
Accepted Answer
Yes this is a result of NWBrowser using low level network APIs to browse for a Bonjour service. Which, as you pointed out, is available in watchOS from a symbol standpoint, but when used outside the context of an audio stream session does not work. For more information see this post for Low-Level Networking on watchOS.

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com

Unable to use NWBrowser on watchOS ?
 
 
Q