iphoneiosapp-store-connectstorekitskproduct

StoreKit on iOS - autorenewable subscription - How to know whether it is a free trial or not?


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?

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.

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.

Screenshot from iTunes Connect


Solution

  • SKProduct > introductoryPrice

    Available since iOS 11.2

    https://developer.apple.com/documentation/storekit/skproduct/2936878-introductoryprice?language=objc