Prerequisites to send custom multicast messages using socket level APIs.

Q1. Please clarify what all an App need to do to send custom multicast messages using socket level APIs instead of Bonjour APIs.
  1. Only Specify service types accessed in Info.plist under Bonjour services.

  2. Only Require the com.apple.developer.networking.multicast restricted entitlement.

  3. Both 1 and 2.

Q2. is "Privacy - Local Network Usage description" always required or is it also optional. If not specified, will iOS present a default local n/w permission prompt to user?
Implementing a custom multicast (or broadcast) protocol requires the special entitlement (com.apple.developer.networking.multicast). This is true regardless of whether your use the legacy BSD Sockets API or Network framework.

Using Bonjour, or some higher-level service like AirPrint, does not require this entitlement.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Prerequisites to send custom multicast messages using socket level APIs.
 
 
Q