如何识别用户在管理->设置中更改了订阅?

How to identify that a user changed subscription in manage->setting?

我们的应用程序支持订阅,现在用户可以通过 ios 设备上的设置 -> 管理订阅按钮更改订阅。

我们如何才能了解应用程序中的此类更改?

我希望在 SKPaymentQueue 中看到有关此更改的交易,或者在验证收据时看到它的指示,但是当我从一个订阅级别更改为另一个订阅级别(在同一订阅组中)时,我找不到任何东西。

有关 storeKit (https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Chapters/Subscriptions.html#//apple_ref/doc/uid/TP40008267-CH7-SW6) 的 Apple 文档提到了取消,但没有提到订阅更改。 当用户更改他的订阅时,如何通知应用程序(客户端或服务器端)?

每月 Validating Receipts With the App Store 在用户计划要续订之前,您可以检查产品标识符

The product identifier of the item that was purchased.

ASN.1 Field Type 1702

ASN.1 Field Value UTF8STRING

JSON Field Name product_id

JSON Field Value string

This value corresponds to the productIdentifier property of the SKPayment object stored in the transaction’s payment property.