且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Android应用程序购买中为每个用户提供免费试用期

更新时间:2022-12-21 12:12:35

应用内购买不支持直接试用的案例,因为应用内结算是一次性的简单购买模型.您完全可以在自己的代码中试用全部功能.具体来说,您将必须弄清楚如何实现此目的,以使用户无法简单地卸载并重新安装该应用程序以获得全新的免费试用版.这将需要在设备末端进行一些服务器端跟踪.一旦用户试用期结束,您的应用将必须锁定全部功能.然后,您的应用应支持通过Google应用内购买流程,该流程完成后将永久解锁所有功能.

In-app purchase does not support the case of a trial directly because the in-app billing is a simple one-time purchase model. Your trial of the full-features, entirely within your own code. Specifically you'll have to figure out how you are going to implement this in such a way that a user cannot simply uninstall and reinstall the app to get a fresh free trial. This will need some server-side tracking on your end of device.Once the user trial has elapsed, your app will have to lock the full features. Your app should then support a purchase flow through Google in-app that, when completed, permanently unlocks the full features.

有关更多详细信息,请访问下面的链接 https://support.google.com/googleplay/android-developer/answer/140504?hl = zh_CN

For further details visit the link below https://support.google.com/googleplay/android-developer/answer/140504?hl=en