iPad 和 iPhone 版本的应用程序上具有相同的 Bundle ID 后缀
这是一个微妙的问题。我计划发布一个具有两个版本的 iOS 应用程序 - 一个用于 iPhone 和 iPod Touch,另一个用于 iPad。这些应用程序将被命名为 MyApp
和 MyApp HD
。该应用程序允许您保存文件,还可以通过 GameCenter 与该应用程序的其他用户进行通信。
我希望 iPad 和 iPhone 版本能够交换文件,并且能够通过 GameCenter 相互通信。所以,我的问题是,在 iTunesConnect 中,应该(并且我可以)为两个应用程序分配相同的捆绑 ID(例如 com.mycompany.myapp
),还是必须为它们提供不同的捆绑 ID(例如 <代码>com.mycompany.myapp和com.mycompany.myapphd
)。
iOS和GameCenter高手请指教!
This is a subtle question. I am planning to release an iOS app with two versions - one for iPhone and iPod Touch, and the other for iPad. The apps will be named, say, MyApp
and MyApp HD
. The app allows you to save files, and also to communicate with other users of the app via GameCenter.
I would like the iPad and iPhone versions to be able to interchange files, and also to communicate with each other via GameCenter. So, my question is, in iTunesConnect, should (and can I) assign both apps the same bundle ID (e.g. com.mycompany.myapp
) or do I have to give them different bundle IDs (e.g. com.mycompany.myapp
and com.mycompany.myapphd
).
iOS and GameCenter experts, please advise!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
每个应用程序都需要不同的捆绑包 ID。如果您创建通用应用程序,则可以拥有单个捆绑包 ID,否则它们将需要具有不同的捆绑包 ID,并且将在 GameCenter 中显示为不同的应用程序。
Each app needs a different bundle ID. You can have a single bundle ID if you create a universal app, otherwise they'll need to have different ones and will appear as different apps in GameCenter.
以下是我从开发人员支持处收到的答案:
商店中的每个应用程序都需要有一个唯一的 id,但是,该 id 与其他 id 具有共同元素,例如:
关于 GameCenter:GameCenter 不支持在两个应用程序之间共享数据。 iPad 和 iPhone 应用程序共享数据的唯一方法是为这两个平台提供一个通用应用程序。
Here's the answer I received from developer support:
Every app in the store is required to have an unique id, however, that id has common elements with other ids such as:
And regarding GameCenter: GameCenter has no support for sharing data between two apps. The only way for an iPad and iPhone app to share data is for there to be one universal app for both platforms.