What is storekit2.0
Generated on 8/2/2024
1 search
StoreKit 2.0 is an updated framework for handling in-app purchases in iOS apps. It offers several improvements over the original StoreKit API, including:
-
Modern Language Features: StoreKit 2.0 uses the Swift Async/Await pattern to perform tasks like fetching product metadata, purchasing, and retrieving customer transaction history, making the code more readable and easier to manage.
-
Enhanced Transaction History: The transaction history APIs now include finished transactions for consumables, which were not accessible through the original APIs.
-
Automatic Cryptographic Validation: The framework automatically performs cryptographic validation for transactions, enhancing security.
-
Back Deployment: Thanks to the back-deployed attribute in Swift, StoreKit 2.0 allows access to new App Store features even when the app is installed on a device with an older operating system.
-
Improved Testing: StoreKit 2.0 includes enhancements to the testing experience in Xcode, allowing developers to test in-app purchase flows more effectively.
For more detailed information, you can refer to the session What’s new in StoreKit and In-App Purchase.
Relevant Sessions
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.
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.
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.