Local Network privacy alert not triggering with iOS 18 beta

Hello,

I have been testing my app with iOS 18 beta and noticing an issue with the triggering of Local Network privacy prompt.

My app uses this permission to make a request to a local network address. Prior to iOS upgrade to 18 beta, the privacy prompt used to get triggered upon making the request and only after tapping on 'Allow', the subsequent requests used to succeed. If the user turned off the toggle for 'Local Network' in the app settings, then this functionality used to break as expected.

Issues observed with 18 beta:

  1. The privacy prompt is not getting triggered upon making the request to local network and the request is succeeding. The app already seems to have this access granted but I do not see the permission toggle in the app settings.
  2. Upon device restart, the prompt got triggered but even on disallowing the access (tapping Don't Allow), the app is able to make requests to the local network. The permission toggle appears in the app settings, but its state does not impact the app's functionality.

Has something changes in this flow? Can someone please help with what might be causing this behaviour?

Answered by DTS Engineer in 801674022

These issues look eminently bugworthy to me. Please file a bug about each one, and post the bug numbers here, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

These issues look eminently bugworthy to me. Please file a bug about each one, and post the bug numbers here, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

The same for me. Xcode 16, iOS 18. Using MultipeerConnectivity doesn't trigger Local Network privacy popup.

Has this bug ever been fixed, or have you ever found a workaround for it?

I have got this behavior in iOS 18.1. I did not notice it in iOS 18.0 or 18.0.1 or the later betas. Could it have reappeared with 18.1?

Has this bug ever been fixed … ?

I presume you’re talking about the bug reported by iOSDev2024.
bohdansw suggests an issue with Multipeer Connectivity, which may or may not be related.

Regarding that, it’s hard to say whether a bug was or wasn’t fixed without a bug number. I’ve not seen a lot of reports about this, but that’s hardly definitive.

I have got this behavior in iOS 18.1.

Just once? Or is it reproducible?

ps I’ve put a bunch of local network privacy info in the just-published TN3179 Understanding local network privacy.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Local Network privacy alert not triggering with iOS 18 beta
 
 
Q