For instance, see an earlier thread on this:
https://developer.apple.com/forums/thread/654243
The rationale for this from Apple:
https://developer.apple.com/videos/play/wwdc2020/10110/
According to Apple's presentation above:
If your app just accesses resources on the wide internet, you don't need to do anything different. You also don't need to update if you only interact with the local network using a system service, like AirPrint, AirPlay, AirDrop, or HomeKit.
These system services handle device discovery without exposing the full list of devices to apps. On the other hand, if your app accesses the local network directly within your app, either with unicast or multicast protocols, your app will require permission.
Fine, but my troubled app does not need any local network information. It does look for the user's location (which might use local network information?) and also accesses the internet. Another app of mine uses the same information to a much larger degree and is not causing any problem.You'll also need to make a few simple updates to your app for iOS 14."
In Simulator (iPhone 11 Pro running iOS 14.0), my app does not appear on the list of "Apps that have requested permission to find and connect with devices ...". The app is running fine as expected. I cannot replicate the alert that is causing my app to be rejected. I don't know how to fix it!
Unlikely.I just discovered that my app had "Application supports iTunes file
sharing" set to "YES" … Could that do it?
No, but even if it did that wouldn’t trigger the alert. This is covered in FAQ-2 of the Local Network Privacy FAQ.Could a print command that never runs cause the app to go look for a
printer?
Are you only testing this on the simulator? If so, that’s not sufficient. See FAQ-12 of the above.In Simulator (iPhone 11 Pro running iOS 14.0), my app …
Most folks who unexpected hit this problem do so because they’ve linked in a third-party library that’s hitting the local network for some reason. If I were in your shoes I’d:
Set up a test device running iOS 14.
Reset the alert state (FAQ-13).
Run and exercise its functionality to see if you can trigger the alert.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"