Re: bonjour broken in iOS 14


Gerriet M. Denkmann
 

On 19 Sep 2020, at 01:40, Jens Alfke <jens@mooseyard.com> wrote:

On Sep 18, 2020, at 2:34 AM, Gerriet M. Denkmann <gerriet@mdenkmann.de> wrote:

But in iOS 14 the stateUpdateHandler gets a .failed NWBrowser.State, with DNS Service Error: NoAuth(-65555)
I watched "WWDC 2020 - Support local network privacy in your app” and found out that in iOS 14 the Info.plist needs additional info:

• Privacy - Local Network Usage Description
if not present - then some default is used: “This app will be able to discover and connect to devices on the networks you use"
• Bonjour services
if this is missing, the app gets a .failed NWBrowser.State, with DNS Service Error: NoAuth(-65555)

Also new in iOS 14: waiting: NWError: -65570: PolicyDenied = User has refused access to Local Network


Gerriet.

Join cocoa@apple-dev.groups.io to automatically receive all group messages.