[UWP]如何申请订阅状态 [英] [UWP]How to request the status of a subscription
问题描述
如何检查我的应用的订阅加载项是否已购买,已过期或已取消?当我调用RequestPurchaseAsync时,会向用户显示一个用户界面以供他购买。如果他已购买,则会出现一个对话框,
告诉他已经拥有订阅。如何在不显示用户界面的情况下查询订阅状态?
< blockquote>
您好,
您可以尝试查看此API:获取用户的订阅。此API将返回用户有权使用的订阅。
将包含订阅产品的详细消息,例如recurrenceState或expirationTime,您可以判断订阅是否仍在使用中。
祝你好运,
Roy
How can I check whether a subscription add-on of my app has already been purchased, has expired or was canceled? When I call RequestPurchaseAsync, a user interface is presented to the user to let him purchase. If he has already purchased, a dialog appears,
telling him he already owns the subscription. How can I query the status of the subscription without presenting a user interface?
Hi,
You could try to take a look at this API:Get subscriptions for a user. This API will return the subscriptions that a user has entitlements to use. It will contain the detail message for a subscription product like the recurrenceState or expirationTime that you could judge if the subscription is still in use.
Best regards,
Roy
这篇关于[UWP]如何申请订阅状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!