I'm using Xamarin to write my tvOS apps. The tools are currently in a state where not everything is supported. One of these things is the support for setting up the launch image, setting the app icons and to define the leaderbords supported by GameCenter.
I successfully created my icons and launch image in an Xcode project (http://stackoverflow.com/questions/32770956/how-to-open-gamecenter-in-tvos) and use them in Xamarin Studio. However I failed for setting up my leaderboard for GameCenter.
- The leaderboard is already used in the iOS version of my game, so the setup in ITC is correct
- tvOS won't let me configure `GKGameCenterViewController` to show a specific leaderboard, the `LeaderboardIdentifier` property is simply missing (just like the `ViewState`):
- From another thread here on the forums I learned that I have to create an asset and set the leaderboard identifier in there. That's what I did in Xcode. I also incuded the required artwork poster.
- I inspected the resulting IPA from Xcode and found a GKGameCenterContent.plist file in there which seems to contain all the relevant information (see below).
- I added this plist to my Xamarin project, hoping that this would be enough for tvOS to pick up my leaderboard config, but it's not. If I present the game center controller it will only show my achievements.
Can anybody tell me, if this plist is maybe referenced from somewhere else? Or should tvOS simply check if the bundle contains a plist file with the name GKGameCenterContent.plist and use it?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>GKLeaderboards</key>
<array>
<dict>
<key>identifier</key>
<string>myLeaderboardId</string>
<key>onDemandResourcesTag</key>
<string>com.apple.gamecenter.Leaderboard</string>
<key>posterImageName</key>
<string>Leaderboard/Poster</string>
</dict>
</array>
</dict>
</plist>