is watch os 6 support bonjour? if not, when it will be

is watch os 6 support bonjour?
I can make it work on watch simulator
but when run on my watch 5 (with watch os 6.2.8)
it reports the errors:

Code Block
dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:3 Err:-1 Errno:1 Operation not permitted

any plan to support this on watch os?
Bonjour is a form of low-level networking. This is supported on watchOS, but only in specific circumstances. See Low-Level Networking on watchOS.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Thanks for the reply. is it mean WatchOS 6 do not support Bonjor unless when audio streaming? suppose I will use bonjor in a audio streaming app , is there any example or document we can use?

If your app has access to low-level networking, existing Bonjour APIs should work just fine.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
I have tried start bonjour when playing audio streaming. still got the same error.
What I have done as following, anything I misunderstood and wrong?
  1. use following to play a onlien mp3

Code Block
let demo_mp3_url = URL(string: "https://file-examples-com.github.io/uploads/2017/11/file_example_MP3_5MG.mp3")
     let asset = AVURLAsset(url: demo_mp3_url, options: nil)
    let item  = AVPlayerItem(asset: asset, automaticallyLoadedAssetKeys: nil)
    self.player = AVPlayer(playerItem: item)

2. after the music is sound, start bonjour search. still got the same error

following is the log I printed.

Code Block language
supportsAudioStreaming
player play
2020-08-18 15:04:38.655276+1200 WatchLandMarks WatchKit Extension[385:200830] dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:3 Err:-1 Errno:1 Operation not permitted
2020-08-18 15:04:38.655567+1200 WatchLandMarks WatchKit Extension[385:200830] [] nw_browser_fail_on_dns_error_locked [B0] nw_resolver_instantiate_dns_connection_for_parameters failed: ServiceNotRunning(-65563)
code-block




Did you follow the advice from WWDC 2019 Session 716 Streaming Audio on watchOS 6?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
is watch os 6 support bonjour? if not, when it will be
 
 
Q