Detecting the new iOS 14 Local Network Access permissions

Is there any new API for the new Local Network Access permissions?

I have an app that uses the local network so users can configure their internet router. Currently when the local network permission appears, it throws a NSURLErrorNotConnectedToInternet

The internet connection appears to be offline.

which is no help at all. The same happens if the user disables the Local Network Privacy, future requests throw the NSURLErrorNotConnectedToInternet error.

NSURLErrorNotConnectedToInternet can obviously be thrown in other situations, so this doesn't help us prompt the user to the issue and I can already foresee many support requests around this.

I have submitted bug report FB8448776

Additionally, there seems to be a bug were the local network permissions do not appear in the apps own settings page. Bug report FB8448959
Any update on this?

Any update on this?

Yes, and no. See FAQ-9 of the Local Network Privacy FAQ.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Detecting the new iOS 14 Local Network Access permissions
 
 
Q