使应用程序的更新版本与其以前的版本兼容
我正准备向 iPhone 市场发布我的第一个应用程序。该应用程序涉及多层组件。
在未来的更新中,我计划为角色添加新的角色、棋盘和皮肤。
我担心如果我更新应用程序(例如发布版本 1.1)并且一个玩家(P1)在更新版本上玩而另一个玩家(P2)在以前的版本上玩,那么两个玩家将会遇到问题。即使 P1(版本 1.1)使用版本 1.0 中未包含的内容。
我是否需要在 1.0 版本中添加针对这些问题的捕手?我是否必须让每个人都使用同一版本的应用程序?或者这真的不是一个问题吗?
编辑:我不知道这是否重要,但我正在通过苹果游戏中心运行连接
I am getting ready to release my first app to the iphone market. This app involves multilayer components.
In future updates I'm planning on adding a new character, board, and skin for the character.
I'm concerned that if I update the app (say release version 1.1) and one player (P1) is play on the updated version and the other player (P2) is playing on the previous version, the two players will run into problems. Even if the P1 (on version 1.1) is using something not included in version 1.0.
Would I have to add catchers for these problems in version 1.0? Would I have to make everyone play on the same version of the app? Or would it not really be an issue?
EDIT: I don't know if this is important but I'm running the connection through Apple's Game Center
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议在连接过程中检查应用程序的版本是否相同。如果不是,则向旧玩家显示一条消息,并告诉他进行更新。如果他不更新,也不要让他玩。这样可以避免很多问题。
I suggest to check during the connection if the versions of the app are the same. If they aren't, display a message to the player of the older one, and tell him to update. Also don't let him play if he doesn't updates. This will avoid many problems.
这实际上取决于您创建应用程序的方式。在我看来,最简单的方法是在开始时添加捕获,因此如果发生应用程序无法识别的情况,请使用一些默认行为。另一种方法是在互相玩游戏时限制使用相同版本的应用程序。
This really depends on how you've create your app. In my head the easiest way would be to add catches in the beginning, so if something happens the app doesn't recognise, use some default behaviour. Another way would be to just limit to the same version of the app when playing each other.