本文介绍了使用应用内计费购买完整版的游戏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望集成在应用程序内结算在我的游戏的免费版本,允许用户从免费版本本身购买完整版本。我已经得到了应用内结算的工作,我可以很容易地在游戏中可进行其他项目。问题是我不知道该怎么办,开始的完整版游戏的下载和实际从市场上购买完整版本。

I want to integrate In-App billing in the free version of my game, to allow user purchase the full version from the free version itself.I already got In-App billing working and I could easily make additional items in game available.The problem is I don't know what to do to start download of full version of the game and to actually purchase the full version from the market.

推荐答案

要尽我的理解,你不能使用IAB购买不同的应用程序(VS全免费)。它仅用于购买项为特定的应用。你可以做的就是用它来:

To the best of my understanding, you can't use IAB to purchase a different application (full vs free). It's only used for purchasing 'items' for that particular application. What you could do is use it to:

  1. 在确认购买升级到完整的应用程序,当你启动你重新确认每一次在本地和升级是否有效,删除游戏内置广告,所以它现在是非自由版。类似的东西。
  2. 确认购买,然后开始下载全部内容包,锁定到设备上。
  3. 确认购买,并已内置到那么'解锁'内容的免费版本。

我猜1和3将是最受欢迎的。 2需要的内容单独的服务器,但一旦你有一台服务器,你也能更好地保护您的购买(在服务器上运行的验证步骤,让你的公钥不会在应用程序中存在),内容可以是服务器 - 签署只是该设备/用户帐户(或类似的东西,所以不能仅仅将内容复制到另一个设备)。

I'm guessing 1 and 3 will be most popular. 2 requires separate server for content, but once you have a server you can also better secure your purchases (have the server run the verify step, so your public key doesn't exist inside the app), and the content could be 'server-signed' for just that device/user-account (or something similar, so can't just copy content to another device).

这篇关于使用应用内计费购买完整版的游戏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 10:42