How to create in-app purchase to upgrade from free version to paid version android

纵然是瞬间 提交于 2019-12-21 01:28:07

问题


I have two version of my app

  1. Paid Version
  2. Free Version

Now in free version I disabled some features that are available only in the paid version. So what i want is when user taps on any of those disabled features, the in-app purchase window should pop up and when the transaction completes the free version of the app should get replaced by the paid version.

Can you please tell me what would be the right way to do that.


回答1:


Free version to paid version scenario:

To understand why you should only go for in app billing inside free version

1) Upgrading free to paid Android apps without leaving two icons

2) Is it possible to replace an existing Android free app with its paid version

Both case scenario:

3) In app-billing implementation , buying paid app from free version

After all it is your choice to select the way as you want to develop app but according to what I suggest:

you should go for the first option that you should provide all feature in the free app version only and upgrade your feature after simple product in app flow.

Hope you clear the way for the further development flow in your app.




回答2:


You should not use two versions if you are using in-App billing. Just use free version and implement in-app purchase in it. When user click on disabled features just open the in-app flow. If user complete the in-app purchase, just unlocked the features with in your free version. You also need to store user information on your server if user uninstall or change his device you will know that this user has already purchased your app. here is the implementation of in-app purchase.



来源:https://stackoverflow.com/questions/19509607/how-to-create-in-app-purchase-to-upgrade-from-free-version-to-paid-version-andro

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