In the past, I used to ping my iPhone‘s local IP address via UDP. If local network permissions were not enabled, it would return an error. If they were enabled, it would return success, which I used to determine whether my app had local network permissions enabled. Now, with iOS 18, it seems to not work anymore. Regardless of whether local network permissions are enabled, pinging the iPhone‘s local IP address always returns success. Is there any other good method to check this permission status?
Case-ID: 9934335
I used to ping my iPhone‘s local IP address via UDP.
I previously recommend this approach in my Triggering the Local Network Privacy Alert. It no longer works on iOS 18, which doesn’t requires local network access to communicate with the device’s own IP addresses. Sorry about that.
To fix this, adopt the new approach described in the Trigger the local network alert section of TN3179 Understanding local network privacy.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"