I have been using networking multicast permissions in my Xamarin application for UDP device discovery, and it has been working reliably for years. However, I am now encountering an issue specific to iPadOS 18.1 (potentially also iPadOS 18, though I haven’t tested this).
The issue is that my app no longer requests the required network permission on devices running iPadOS 18.1. On the other hand, the app works perfectly on iPhone and iPadOS 17.7 without any problems.
Has there been any change in the networking or permissions framework in iPadOS 18.1 that could cause this behavior? I would appreciate any guidance or insights to resolve this issue.
Thank you for your assistance!
The issue is that my app no longer requests the required network permission on devices running iPadOS 18.1.
This is usually a symptom of an underlying issue. I give one example of this in the Identify the Wi-Fi interface correctly section of TN3179 Understanding local network privacy.
Even if you’re not hard coding en0, it’s still easy to implement your broadcast code incorrectly. IMO the best way to avoid this is to not implement your own service discovery. I talk about that in Extra-ordinary Networking > Don’t Try to Get the Device’s IP Address > Service Discovery.
If you absolutely must do this, see Extra-ordinary Networking > Broadcasts and Multicasts, Hints and Tips for advice on how to do it correctly.
Oh, and it’s likely that many of the other posts linked to from Extra-ordinary Networking will be of interest to you.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"