3
votes

My mac app has a built-in AirPlay function for streaming video file from my app to Apple TV, so do I need a Server Access entitlement key ("com.apple.security.network.server") when submitting it to Mac App Store?

https://developer.apple.com/library/content/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/EnablingAppSandbox.html#//apple_ref/doc/uid/TP40011195-CH4-SW9

1
If at all, you'd need the client entitlement: "Both outgoing and incoming connections can send and receive data. The sole difference is in whether your app is initiating the connection or is receiving connections initiated by other apps or other hosts." And then: "Allow Outgoing Connections com.apple.security.network.client"DarkDust
@DarkDust u mean I need client entitlement instead of server?RRN
Yes, that's what I wrote.DarkDust
@DarkDust since I am initiating the connection to the apple tv so I need client one, am I correct?RRN
Exactly, your app is acting as a client.DarkDust

1 Answers

2
votes

Yes ! your need that Entitlement Key

If your app connects to the internet, you need to add the following lines to your entitlements.plist:

<key>com.apple.security.network.client</key>
<true/>