StoreKit showManageSubscriptions 没有订阅

问题描述 投票:0回答:1

我目前正在测试我们上传到 TestFlight 的应用程序。我使用

StoreKit.AppStore.showManageSubscriptions
显示用户可以取消的订阅列表。

但是,在拨打

StoreKit.AppStore.showManageSubscriptions
时,它显示“您没有任何订阅。”。

当我使用模拟器进行测试时,会显示订阅。我有什么遗漏的吗?

ios swift storekit
1个回答
0
投票

AppStore.showManageSubscriptions
不显示可用的订阅,仅显示已购买订阅的选项(升级/降级/取消)。

您首先必须通过购买订阅来订阅;

try await product.purchase(options: ...)

购买后,打电话时应该会显示;

AppStore.showManageSubscriptions(in: ...)
© www.soinside.com 2019 - 2024. All rights reserved.