简体   繁体   English

分享同一游戏中心排行榜iOS / tvOS / OS X?

[英]Share Same Game Center Leaderboard iOS / tvOS / OS X?

I'm wondering if it is at all possible to somehow share the leaderboard / achievements from say an iOS game center leaderboard, to be used as well for say tvOS and OS X versions of the same game? 我想知道是否有可能共享iOS游戏中心排行榜中的排行榜/成就,并用于同一游戏的tvOS和OS X版本?

Or does each seperate platform have to maintain their own clone of the same leaderboard / achievements? 还是每个单独的平台都必须维护自己的相同排行榜/成就的克隆?

If this is possible any links to reference material would be awesome, I can't find anything bar the mention of something like this being possible in the tvOS Keynote. 如果可能的话,参考资料的任何链接都很棒,我在tvOS主题演讲中找不到任何提及此类内容的东西。

There are two solutions: One for iOS / tvOS, and one for all three. 有两种解决方案:一种用于iOS / tvOS,另一种用于所有三种。

According to amandavoss from Apple 根据苹果公司的amandavoss

For iOS and TVOS you can use the new "universal bundle ID" feature where you can add a TVOS version of the app to the existing iOS bundle ID. 对于iOS和TVOS,您可以使用新的“通用捆绑包ID”功能,您可以在其中将应用程序的TVOS版本添加到现有的iOS捆绑包ID中。 In iTunes Connect you would just go to the iOS app in question and in the App Store view click + Version. 在iTunes Connect中,您只需转到有问题的iOS应用,然后在App Store视图中单击+版本。 Select TVOS and go from there. 选择TVOS,然后从那里去。

Another option would be to group them games. 另一种选择是将游戏分组。 This would add "grp." 这将添加“ grp”。 to all leaderboard and achievement identifiers but can be shared by all apps in the group (where each app has a unique bundle ID). 到所有排行榜和成就标识符,但可以由组中的所有应用共享(每个应用都有唯一的捆绑包ID)。 For that simple "Move to Group" in iTunes Connect. 对于iTu​​nes Connect中的简单“移动到组”。

amandavoss amandavoss

https://forums.developer.apple.com/thread/24514 https://forums.developer.apple.com/thread/24514

For iOS and TVOS this is possible, if they use the same BundleID. 对于iOS和TVOS,如果它们使用相同的BundleID,则可以这样做。

If you have an existing iOS project just open iTunes Connect. 如果您有现有的iOS项目,请打开iTunes Connect。 Hit the '+' button to add an Apple TV version. 点击“ +”按钮添加Apple TV版本。 Both will share their leaderboards. 双方将分享自己的排行榜。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM