can we rely on "NoAuth" as shown in WWDC video to check if permission has not been provided?

In the WWDC202 video https://developer.apple.com/videos/play/wwdc2020/10110/ at 7:17, it is shown that "NoAuth" is received if Local network permission has been declined. Can we rely on this error code if using NWBrowser API to confidently say that local network permission is not available or could there be other cases where this error may be encountered?
Since these APIs are still in Beta, I would plan on things changing over the course of the Beta cycle. At the time of writing this I am seeing the NoAuth logs when attempting to use NWBrowser WITHOUT defining the usage description or the Bonjour service NWBrowser is searching for in the Info.plist. I see PolicyDenied(-65570) when the user has tried to use NWBrowser and denied the prompt to allow usage on the local network.

For more information, see Support local network privacy in your app.

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
Thanks Matt for the response.

I check it on my system that On sending a Multicast message (MDNS) using socket (sendto api - https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendto.2.html), errno=65 “There is no route to the host.” is received.

Please can you confirm if [errno=65] is and will be the error reported in case of local network permission Denied ??

I understand that errno=65 may be reported under some other scenarios as well but need a confirmation that errno=65 is the error at socket level in case of local w/w permission denied.

Moreover, Please can you list down few other scenarios where Apple's sendto api (https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendto.2.html) gives errno=65.

There is no way to ever know this for certain because thing move around during a Beta cycle. My recommendation would be to keep testing this upon each release and compare the results once the final release is shipped.


Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com 
can we rely on "NoAuth" as shown in WWDC video to check if permission has not been provided?
 
 
Q