如何在应用产品购买中使用订阅类型

Moh*_*sin 3 android product subscription in-app-purchase in-app-billing

我已经在我的应用程序中实现了订阅类型的应用程序内部产品,例如1个月或2个月的程序包,一旦用户订阅了我让服务器知道并相应地处理他/她的产品,它工作得非常好.

根据Google完成订阅期限:

谷歌自动削减信用额度并续订包裹.

我的问题:如何了解下个月付款的用户?

lxk*_*vlk 6

回答这个问题:您无法使用订阅.您只能使用inapps.

从文档引用:

Important: Unlike in-app products, subscriptions cannot be consumed. 资料来源:https://developer.android.com/google/play/billing/api.html

该页面指向以下两个:https : //developer.android.com/google/play/billing/billing_subscriptions.html https://developer.android.com/google/play/billing/billing_integrate.html#Subs

另请注意,在提供订阅时,最好允许用户恢复订阅.例如,如果用户在您的应用中登录,购买了订阅,然后使用其他用户名登录,则该订阅也应该可用,因为它附加到用户google play帐户.

要做到这一点,你应该查询购买的潜艇,如指定的marmor.