Allow "App" to find the devices on local network?

Hi,

On macOS 15 beta 7, we get a network popup while launching application, "Allow "App" to find the devices on local network?" This popup we are not seeing in older versions of macOS. We also see a a new option in "System Settings->Privacy & Security->Local Network". Is there way to add the application entry in "Local Network" through a command so that we can suppress this popup on launching the applications?

Regards

Prema Kumar

Answered by darkpaw in 801617022

That's a security alert that gives the user the opportunity to confirm or deny access for your app to devices on their local network.

Bypassing that alert would be a massive no-no. (If an app could bypass it, what's the point in the alert...?)

You need to handle the situation where the user confirms access, and when they deny access. When they deny, you should give them reasons as to why it's required, and give them instructions on how to grant access.

Accepted Answer

That's a security alert that gives the user the opportunity to confirm or deny access for your app to devices on their local network.

Bypassing that alert would be a massive no-no. (If an app could bypass it, what's the point in the alert...?)

You need to handle the situation where the user confirms access, and when they deny access. When they deny, you should give them reasons as to why it's required, and give them instructions on how to grant access.

That's a security alert that gives the user the opportunity to confirm or deny access for your app to devices on their local network.

Right. This feature has existing on iOS for a few years, and macOS 15 (currently in beta) brings it to macOS as well. I have a bunch of general backstory in the Local Network Privacy FAQ.

Share and Enjoy

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

Hi,

Thank you for the quick response.

Regards

Prema Kumar

Why does the popup appears for the same app over and over again?

I'v been writing an app for macOS for years. I'm not aware my app cares about devices. It should not, it only cares about full disk access.

So how does the Mac figure out that my app needs access to Devices. I want to pre-fill this when I build the app so my customers do not freak out.

Why does the popup appears for the same app over and over again?

We recently published TN3179 Understanding local network privacy, which discusses some of the common causes for that issue. In short:

  • Make sure your app has a stable code signing identity.

  • Make sure your app has a main executable UUID.


So how does the Mac figure out that my app needs access to Devices.

Again, this is something I cover in TN3179. In short:

  • The system presents the Local Network alert when your app performs a locale network operation.

  • The technote has a full description of what constitutes a locale network operation.

  • There’s no great way to work out which specific part of your code performed the local network operation and thus triggered the alert.

Share and Enjoy

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

Allow "App" to find the devices on local network?
 
 
Q