How to fix "would like to find and connect to devices on your local network"
https://developer.apple.com/videos/play/wwdc2020/10110/Apps now trigger a prompt the first time they try to interact with the local network. Until permission is granted all local network communication is blocked. The prompt includes a usage description that you specify in your app's info.plist. Apps that haven't updated to iOS 14 will show default reason text. If you notice a prompt that you don't expect for your app, you might be using a third party framework that accesses the local network.
If anyone knows an easier way to find the cause of this alert, please do share. :)
I'd rather not "find and connect to devices on the local network" if I don't have to; but I have to spend weeks walking through code basis with the debugger to try to figure out what method I'm calling that triggers this?
In our app, we get it just because we send a request to the DNS server of the local network (the one advertise by the wifi router with DHCP) to resolve a domain name.
I guess this would not happen if we were using CFNetwork's resolver API (https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/NetworkingTopics/Articles/ResolvingDNSHostnames.html), but unfortunately we can't because the app needs to perform NAPTR and SRV queries, that are unsupported by CFNetwork resolver API.
Apple, could you please avoid asking this permission when the targetted IP address is the DNS server address advertised by the router through DHCP ?
How do I get that to be prompted again so I can enable it after I declined it?
Does anyone know?
See FAQ-13 in the Local Network Privacy FAQ.How do I get that to be prompted again so I can enable it after I
declined it?
Oh wait, are you developing this app? Or just using it? If it’s the latter, FAQ-13 might help but, if not, you’re very much in the wrong place. If you’re having user-problems with an app, you should contact the app’s vendor.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Is there any mechanism to suppress this pop up during development.
Can you start a new thread for this question?
OK, I see that you did start a new thread for this. I’ll respond over there.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"