iOS 上的 StoreKit - 自动续订订阅 - 如何知道它是否是免费试用版? [英] StoreKit on iOS - autorenewable subscription - How to know whether it is a free trial or not?
问题描述
在 iTunes Connect 中,可以为自动续订订阅提供免费试用期.
In iTunes Connect it is possible to give a free trial period for autorenewable subscriptions.
App > Manage In App Purchases > Subscription Basic > 1 Month > Offer a free trial?
我怎样才能在客户端上获得这些信息?SKProduct
正如我所见,没有关于此的任何信息.由于我们正在进行营销活动,因此最终用户看不到有关产品的信息是非常令人困惑的.
How can I get this information on the client? SKProduct
does not have any information about this as I can see. Since we're having a marketing campaign it is very confusing for the end user to not see information about the product has a trial period.
当然,可以从我维护的服务器中获取此类信息,但是我们将有更新服务器和 iTunes Connect 的开销.所以我不接受这种答案,除非它是为了从 Apple 的服务中检索试用期信息.
Of course it is possible to fetch this kind of information from a server I maintain, but then we'll have the overhead with updating both our server and iTunes Connect. So I don't accept this kind of answer unless it is wired up to retrieving that trial period information from Apple's services.
推荐答案
SKProduct > introductoryPrice
SKProduct > introductoryPrice
自 iOS 11.2 起可用
Available since iOS 11.2
https://developer.apple.com/documentation/storekit/skproduct/2936878-introductoryprice?language=objc
这篇关于iOS 上的 StoreKit - 自动续订订阅 - 如何知道它是否是免费试用版?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!