检测当前订阅是否处于Google

检测当前订阅是否处于Google

本文介绍了检测当前订阅是否处于Google Play商店试用版中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我试图检测通过应用程序内购买购买我的应用程序的用户目前是否处于试用期。



对于Apple(ios商店)这是一个容易的标志,我可以在收据中找到。



对于Google Play,即使我使用google play android developer进行服务器端呼叫API但响应本身不包含任何标志,以便我了解用户目前是处于付费还是试用期。



有没有人有任何聪明的建议在google的世界中检测到这个问题?

解决方案

我检查了initiationTimestampMsec和validUntilTimestampMsec之间的区别。如果它与我配置的试用期相匹配。

I'm trying to detect whether a user who has purchased my application through in-app purchase is in currently in Trial period or not.

For Apple (ios store) it was an easy flag which I could find in the receipt.

For Google Play, even though I'm making a server end call using the google play android developer API but the response itself does not contain any flags for me to understand whether the user is currently in paid or trial period.

Does any one have any smart suggestions of how to detect this in the google world?

解决方案

I checked the difference between initiationTimestampMsec and validUntilTimestampMsec. If it matches my configured trial period its trial.

这篇关于检测当前订阅是否处于Google Play商店试用版中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 16:34