简体   繁体   English

Apple iOS Inapp 购买服务器到服务器通知的“取消”通知案例?

[英]Apple iOS Inapp purchase Server to Server Notifications' 'Cancel' notification cases?

We have been testing In App purchase Server to Server notifications in sandbox environment over and over.我们一直在沙盒环境中反复测试应用内购买服务器到服务器的通知。 Apple's documentation here states for the Cancel type notification that: Apple 的文档在此处声明了 Cancel 类型通知:

Indicates that the subscription was canceled either by Apple customer support or by the App Store when the user upgraded their subscription .表示当用户升级订阅时,订阅已被 Apple 客户支持或 App Store取消。 The cancellation_date key contains the date and time when the subscription was canceled or upgraded. cancel_date 键包含取消或升级订阅的日期和时间。

As per this, we should receive a Cancel notification when we perform an upgrade of a product from the subscription group but we have been receiving a INTERACTIVE_RENEWAL instead?根据这一点,当我们从订阅组执行产品升级时,我们应该收到Cancel通知,但我们一直在收到INTERACTIVE_RENEWAL Is this because we are testing in Sandbox environment.这是因为我们在沙盒环境中进行测试。 Do we get the CANCEL in production, and if yes whether we should still expect another INTERACTIVE_RENEWAL in production as well.我们是否在生产中获得CANCEL ,如果是,我们是否还应该期待另一个INTERACTIVE_RENEWAL在生产中。

You'll only receive a CANCEL notifications if the subscription was refunded by Apple support.如果 Apple 支持已退还订阅,您只会收到CANCEL通知。 You should expect the INTERACTIVE_RENEWAL events for upgrades.您应该期待升级的INTERACTIVE_RENEWAL事件。

Is this because we are testing in Sandbox environment.这是因为我们在沙盒环境中进行测试。 Do we get the CANCEL in production, and if yes whether we should still expect another INTERACTIVE_RENEWAL in production as well.我们是否在生产中获得了 CANCEL,如果是,我们是否还应该期待另一个 INTERACTIVE_RENEWAL 在生产中。

Correct.正确的。 This behavior is due to Sandbox env.这种行为是由于 Sandbox 环境造成的。 In Production, you would get both the notification.在生产中,您将同时收到通知。

From Apple Doc : CANCEL - indicates that the subscription was canceled either by Apple customer support or by the App Store when the user upgraded their subscription.来自 Apple Doc : CANCEL - 表示当用户升级订阅时,订阅已被 Apple 客户支持或 App Store 取消。 The cancellation_date key contains the date and time when the subscription was canceled or upgraded. cancel_date 键包含取消或升级订阅的日期和时间。

https://developer.apple.com/documentation/storekit/in-app_purchase/enabling_server-to-server_notifications https://developer.apple.com/documentation/storekit/in-app_purchase/enabling_server-to-server_notifications

If you check the documentation for CANCEL today (20210404) you can see that the CANCEL notification no longer mentions the part that it is sent when there is an upgrade.如果您今天查看CANCEL的文档 (20210404),您会发现 CANCEL 通知不再提及升级时发送的部分。 They changed the documentation (and, I suppose, the behaviour too), but they didn't make an explicit mention to that (a changelog, for example), and they don't include modification time for documentation pages.他们更改了文档(我想,也更改了行为),但他们没有明确提及(例如更改日志),并且他们不包括文档页面的修改时间。 So it is very difficult for us, as developers, detect the changes in an easy way.因此,作为开发人员,我们很难以简单的方式检测更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 iOS - 购买inapp后从Apple服务器下载 - iOS - Downloading from Apple server after inapp purchase ios:inapp购买内容在95%的下载后停止从Apple服务器下载 - ios: inapp purchase content stops downloading from Apple server after 95 percent download Apple:应用内购买订阅和服务器到服务器通知 - Apple: In App Purchase Subscriptions & Server to Server Notifications 在 Apple iOS 应用程序内购买服务器到服务器通知沙箱中未获得统一收据 - Not getting unified_receipt in Apple iOS In App Purchase Server-to-Server Notification Sandbox 苹果inapp购买 - Apple inapp Purchase Apple:在 App 内购买订阅服务器通知查看过去的历史记录 - Apple: In App Purchase Subscriptions Server Notifications view past history 无论如何,是否可以从内容服务器检查Apple Inapp购买产品标识符是否有效? - Is there anyway to check if an Apple Inapp purchase product identifier is valid from the content server? InApp 购买消耗品服务器验证设置 - InApp Purchase Consumable Server Validation Set Up 如何在InApp购买中使用SKProductsRequest,如何从我自己的iOS7服务器中获取非消耗性产品 - How to use SKProductsRequest in a InApp Purchase, fetching non-consumable products from my own server in iOS7 在iOS InApp购买中恢复购买 - Restore Purchase in iOS InApp Purchase
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM