My app unexpectedly displays a local network privacy alert. Is it possible to explicitly deny without alert?

Hi team. Like the title, I'm figure out how to create my app so that I don't explicitly display local network privacy alerts.

https://developer.apple.com/forums/thread/664116

This thread was a little helpful, but I couldn't find a clear way.

Is there a way to automatically reject without explicitly displaying an alert, even if permission is required, such as plist settings?

Thanks.

Answered by Systems Engineer in 708864022

Like the title, I'm figure out how to create my app so that I don't explicitly display local network privacy alerts.

Is there a way to automatically reject without explicitly displaying an alert, even if permission is required, such as plist settings?

There is no way to automatically allow or disallow the local network privacy prompt. If it shows up in your app then you will need to analyze your app's code to get a better idea on how the prompt is being triggered. If the prompt is being triggered from a library that you do not control then you will need to remove that library or inquire further about this functionality with the library vendor.

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
Accepted Answer

Like the title, I'm figure out how to create my app so that I don't explicitly display local network privacy alerts.

Is there a way to automatically reject without explicitly displaying an alert, even if permission is required, such as plist settings?

There is no way to automatically allow or disallow the local network privacy prompt. If it shows up in your app then you will need to analyze your app's code to get a better idea on how the prompt is being triggered. If the prompt is being triggered from a library that you do not control then you will need to remove that library or inquire further about this functionality with the library vendor.

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com

Thank you. Your answer was very helpful to me!

My app unexpectedly displays a local network privacy alert. Is it possible to explicitly deny without alert?
 
 
Q