how to get subscription period from storekit's product
Generated on 2/19/2025
1 search
To get the subscription period from StoreKit's product, you can refer to the subscription info under the product model. This includes details about the pricing and duration of offers. Specifically, the subscription info provides members for each of the available offer types, such as introductory offers, promotional offers, and win-back offers. This information is crucial for building support for offers in your app and can be used to determine the kind of offer a subscription offer object is and to fetch specific offer details.
For more detailed guidance, you might want to check out the session Implement App Store Offers (00:01:56) where they discuss the transaction and renewal info APIs in StoreKit, which are important for understanding purchases and subscription statuses.

What’s new in StoreKit and In-App Purchase
Learn how to build and deliver even better purchase experiences using the App Store In-App Purchase system. We’ll demo new StoreKit views control styles and new APIs to improve your subscription customization, discuss new fields for transaction-level information, and explore new testability in Xcode. We’ll also review an important StoreKit deprecation.

Explore App Store server APIs for In-App Purchase
Learn how to leverage your server to build great In-App Purchase experiences with the latest updates to the App Store Server API, App Store Server Notifications, and the open source App Store Server Library. After a recap of current APIs, we’ll introduce updated endpoint functionality, new transaction fields, and a new notification type. We’ll also discuss best practices for the purchase lifecycle, delivering content, and targeting offers, so you can become a server power user.

Implement App Store Offers
Learn how to engage customers with App Store Offers using App Store Connect, as well as the latest StoreKit features and APIs. Discover how you can set up win-back offers (a new way to re-engage previous subscribers) and generate offer codes for Mac apps. And find out how to test offers in sandbox and Xcode to make sure they work smoothly.