With the new Local Network privacy permissions in iOS 14, is there an API for an app to find out if Local Network permissions are granted to the app? Couldn't find anything in my first look through documentation.
Our use case: our app opens a UDP port to listen for 3rd-party devices on the network that use UDP broadcasts.
Experimenting with iOS 14 Beta 2, opening the UDP port does not return any errors; we just don't receive any data sent to that port. This is normal if no device exists, but a problem the user can resolve if the device is broadcasting and the user just needs to grant Local Network access to our app.
We'd like to detect this case and prompt the user to go to Settings and grant access.
EDIT:
I see this question has been asked on the forums already, and there is no API.
https://developer.apple.com/forums/thread/650648
https://developer.apple.com/forums/thread/651107
I'd like to add this use case as an argument to add an API. Without this API, there is no error code or other way our app can tell the difference between "no device broadcasting" and "user needs to grant permission".
Our use case: our app opens a UDP port to listen for 3rd-party devices on the network that use UDP broadcasts.
Experimenting with iOS 14 Beta 2, opening the UDP port does not return any errors; we just don't receive any data sent to that port. This is normal if no device exists, but a problem the user can resolve if the device is broadcasting and the user just needs to grant Local Network access to our app.
We'd like to detect this case and prompt the user to go to Settings and grant access.
EDIT:
I see this question has been asked on the forums already, and there is no API.
https://developer.apple.com/forums/thread/650648
https://developer.apple.com/forums/thread/651107
I'd like to add this use case as an argument to add an API. Without this API, there is no error code or other way our app can tell the difference between "no device broadcasting" and "user needs to grant permission".