Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What triggers the "would like to find and connect to devices on your local network" permission notification on iOS 14?

Tags:

ios

ios14

What actual method calls, excluding Bonjour, triggers the "would like to find and connect to devices on your local network" permission notification on iOS 14?

This is the screen shot from the WWDC session on this new permission. Which is only somewhat helpful as an overview. I'm more interested in figuring out what all method calls trigger this.

enter image description here

like image 941
William GP Avatar asked Aug 21 '20 14:08

William GP


2 Answers

If you're using react native with a debug configuration, then you are including all the code responsible for communicating with your dev machine so you can probably ignore this message.

However it's best to check you have no other libs that require access too. To do this just build a Release version and see if the message persists.

like image 68
James Trickey Avatar answered Oct 15 '22 16:10

James Trickey


In a nutshell, Bonjour. Its use is no longer "transparent". See https://developer.apple.com/videos/play/wwdc2020/10110/ for more information:

If your app interacts with devices using Bonjour or other local networking protocols, you must add support for local network privacy permissions in iOS 14.

Even an existing app is subject to this rule; the first attempt to use Bonjour triggers the authorization alert.

like image 37
matt Avatar answered Oct 15 '22 15:10

matt