I'm working on an app which will detect smart-hubs (manufactured by my client) on the local network.
There are a few things I need to do:
- Send UDP Packets to a broadcast address.
- Receive UDP Packets that have been broadcast to the same address.
- Use a NWBrowser to find devices which advertise as _mydevice._tcp.
In the simulator this is all working well.
It will not even build for my development device (iPhone SE running iOS 15.4.1)
I have added the NSBonjourServices array, NSLocalNetworkUsageDescription string, and com.apple.developer.networking.multicast boolean into my entitlements file.
However xCode is unable to update the provisioning profile:
I have tried to follow all Quinn's instructions that lead to this page. but I must be missing something because there is no "Additional Capabilities" tab for my App ID and I cannot see anywhere to request/set the NSBonjour entitlements or udp multicast entitlements for the AppID.
I have tried to read the documentaion but getting nowhere. I have missed a secret step somewhere!
Please help me get this working. It is vital for our app.
How can I request this entitlement?
The Development Account Owner will have to request the entitlement here, not the Account Admin.