- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
根据文档“当用户在有效的结算周期取消订阅时,Google Play 不会立即将购买状态的变化通知您的应用”。也就是说,订阅在 Activity 计费周期结束之前是“有效的”。 (在此之前,不能进行新的订阅)。但是,如果您取消订阅并卸载您的应用(并重新安装),是否会触发购买状态更改 (onPurchaseStateChange)(因为在这种情况下可以进行新的购买/订阅)或者它是如何工作的?
我也许可以在我的应用中使用基于 HTTP 的 API 来请求购买状态(?),但它会在有效的计费周期内返回 CANCELED 吗?
也链接到 this问题。
最佳答案
But if you cancel the subscription and uninstall your app (and reinstalling it again), would that trigger a purchase state change (onPurchaseStateChange) (Since a new purchase/subscription can be made in this case) or how does it work?
即使卸载/重新安装后,订阅仍将显示为 Activity 状态。因为确实,它是活跃的。在这种情况下取消意味着在当前周期结束后不会自动向用户收费。
I could maybe use HTTP-based API in my app to request the purchase state(?), but does it return CANCELED during an active billing cycle?
是的,您可以使用 Google Play Android Developer API .请记住,此 API 需要身份验证 token ;并且您必须使用用于发布应用程序的同一 Google 帐户。因此,出于安全原因,这必须在您自己的服务器上完成。
但有趣的是:即使您使用 API 并检查最近取消的订阅,它也会显示为有效。
这方面的一个例子可能是调用 API 来检查已取消的订阅:
https://www.googleapis.com/androidpublisher/v1.1/applications/YOUR-PACKAGE-NAME/
subscriptions/THE-SUBSCRIPTION-SKU/
purchases/PURCHASE-TOKEN-GOES-HERE?access_token=AUTH-TOKEN-GOES-HERE
结果如下:
{
"kind": "androidpublisher#subscriptionPurchase",
"initiationTimestampMsec": "1379986154994",
"validUntilTimestampMsec": "1382621354994",
"autoRenewing": false
}
因此,如果订阅被取消,您必须知道的唯一提示是 autoRenewing
,它被设置为 false。这并不意味着您必须停止提供订阅内容。正如文档所表达的那样:
Important: In all cases, you must continue to offer the content that your subscribers have purchased through their subscriptions, for as long any users are able to access it. That is, you must not remove any subscriber’s content while any user still has an active subscription to it, even if that subscription will terminate at the end of the current billing cycle. Removing content that a subscriber is entitled to access will result in penalties. Please see the policies document for more information.
关于Android:应用内计费 - 取消订阅,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15560259/
我正在用 Java 创建一组小部件,用于解码和显示在串行接口(interface)接收到的消息。 消息类型由唯一标识符定义。每个小部件只对特定标识符感兴趣。 如何对应用程序进行编程,以便将消息正确分发
我有以下代码,其中包含多个订阅。我需要实现的是这样的: 订阅activateRoute 以获取用户和产品数据。 返回商品数据后,使用商品数据订阅getSeller服务。 使用返回的卖家数据订阅 get
我已经使用 Fitbit 的 PHP 库 (www.disciplinexgames.com/fitbit) 在我的网站中成功集成了 FitBit api。它工作正常,但我现在想使用订阅 API,以便
在我的 Angular 7 应用程序中,我有下一个功能: getUserData(uid) { return this.fireStore.collection('users').doc(
我正在尝试在 Node 中实现发布/订阅模式,但不使用 Redis。功能应该是相同的;您可以发布到 channel ,订阅 channel 并收听数据(如果您已订阅);以下是 Redis 功能: pu
这是我当前的应用程序结构: /client/client.js /server/server.js collection.js 有 HTML 和 CSS 文件,但这些与我的问题无关。在将我的应用程序拆
我们正在使用OpenTok建立视频聊天室体验,并且在基本工作正常的同时,我发现当 session 室中有很多参与者发布音频时,本底噪声非常高。像Zoom这样的浏览器外解决方案似乎没有这种高水平的“白噪
RabbitMQ 是点对点还是发布-订阅?或者两者都取决于配置选项? 我一直在查看配置,它们似乎都支持点对点模型而不是发布-订阅。即消息一旦被消费就会从队列中删除,并且不可用于第二个消费者。 最佳答案
我是 Angular 6 和 ngrx 商店的新人。我尝试在从商店订阅数据后调度操作,但它会导致无限循环并使浏览器崩溃?我错了什么。我发现它使用 rxjs 的 do/tap 运算符但仍然不起作用的一些
这个问题已经有答案了: Property '...' has no initializer and is not definitely assigned in the constructor (37
这个问题已经有答案了: Property '...' has no initializer and is not definitely assigned in the constructor (37
我正在使用 Visual Studio 2017 v15.6.2 和 Azure Services Authentication Extension 为支持 MSI 的应用程序进行本地 azure 功
我想知道如何确定给定的 WC_Product 对象 $product 是否是订阅产品。 最佳答案 您可以使用他们的辅助函数,这可能是最完整的: if( class_exists( 'WC_Subscr
我正在研究使用服务器发送的事件作为支持 api 来实现“订阅”类型。 我正在苦苦挣扎的是接口(interface),更准确地说,是这种操作的 http 层。 问题: 使用原生 EventSource不
我会根据每个用户的订阅类型向我的用户发送通知。 例如: 用户 A 订阅了所有新闻文章 用户 B 订阅了所有评论 用户 C 订阅了网站上的所有新内容 我有一个每 5 分钟运行一次的脚本(除非该脚本仍在运
我正在使用 Ionic2/Angular2,并且需要使用参数 authData 调用函数,如下所示。 public auth: FirebaseAuth this.auth.subscrib
已结束。此问题正在寻求书籍、工具、软件库等的推荐。它不满足Stack Overflow guidelines 。目前不接受答案。 我们不允许提出寻求书籍、工具、软件库等推荐的问题。您可以编辑问题,以便
我们现有的系统可以持续处理大量文件。粗略地说,每天大约有 300 万个文件,大小从几千字节到超过 50 MB。这些文件从接收到完成使用会经历几个不同的处理阶段,具体取决于它们所采用的路径。由于这些文件
我有一项服务,我使用 Paypal 订阅。 Paypal 有 webhooks。问题是我不知道我需要使用哪个,不知道用户是否为下个月付款。 我使用了 Billing subscription rene
我目前正在为一个网站整理一个处理脚本,遇到了一个我似乎无法找到明确答案的问题。 Paypal 的文档充其量是不确定的,我对 Paypal 的使用还不够多,无法从他们提供的信息中轻松辨别答案。 当通过
我是一名优秀的程序员,十分优秀!