Using In-App billing to purchase full version of the game

社会主义新天地 提交于 2019-12-01 20:53:53

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. verify a purchase of 'upgrade' to full app, and when you start up you re-verify each time locally, and if the upgrade is valid, you remove in-game advertising, so it's now the 'non-free' version. Something like that.
  2. verify purchase, and then start to download full content pack, 'locked' to the device.
  3. verify purchase, and then 'unlock' content already built-into the free version.

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).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!