Android应用内结算订阅状态更改回调 [英] Android In-App Billing Subscription status change callbacks

查看:121
本文介绍了Android应用内结算订阅状态更改回调的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个支持应用内订阅的应用。订阅将使我的用户能够在Android世界之外使用多种服务和优势。我知道我可以使用Google Play Developer API查询订阅的状态,但由于提供的服务和优势的性质,这样做并不是很方便。我想知道是否有办法在订阅状态发生变化时通知其状态。例如,像一个Web钩子。

I'm writing an app that will support in-app subscriptions. The subscriptions will enable my users to use a number of services and benefits outside the Android world. I know that I can use Google Play Developer API to query the status of a subscription, but due to the nature of the offered services and benefits, it is not very convenient to do that. I was wondering if there is a way to get notified about the status of the subscription when it changes. Something like a web hook for example.

推荐答案

我想发表评论以回应您的意见,但显然这太长。除此之外,这也是对你的问题的回答,所以我认为这可能是一件好事,只是将它作为答案发布。也许它甚至可以解决你的问题。

I wanted to post a comment in response to yours, but apparently this was too long. In addition to that, it is also kind of an answer to your question, so I thought this might be a good thing to just post it as an answer instead. Maybe it even solves your problem.

所以,关于你的评论。你不一定非得这样做。现在,我不知道你的系统要求,但我只是分享我的,并希望它可以帮助你。

So, regarding your comment. You don't necessarily have to do it that way. Now, I don't know your system requirements, but I'll just share mine and hope it helps you out.

保存用户

这种方式可以消除依赖webhooks的需要。虽然我同意,webhooks会更有效率,甚至可能更容易实现。

This way you remove the need to rely on webhooks. Although I agree, webhooks would've been more efficient and probably even easier to implement.

让我知道如果您有任何问题或系统中存在一些缺陷I描述。

Let me know if you have any questions or there are some flaws in the system I described.

这篇关于Android应用内结算订阅状态更改回调的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆