StoreKit
Generated on 8/1/2024
1 search
StoreKit at WWDC 2024
Sessions Mentioned:
Key Updates and Features:
-
StoreKit 2 Enhancements:
- Swift Async/Await Pattern: StoreKit 2 leverages the Swift async/await pattern for tasks such as fetching product metadata, purchasing, and retrieving customer transaction history. This modern approach simplifies asynchronous programming.
- Back Deployment: Thanks to the back-deployed attribute in Swift, StoreKit 2 features can be accessed even on devices with older operating systems.
- Deprecation of Original API: Starting with iOS 18, the original API for in-app purchases is deprecated. Existing apps will continue to work, but no new features or enhancements will be added to the legacy API. Developers are encouraged to migrate to StoreKit 2 for a better experience.
-
Testing Enhancements in Xcode:
- StoreKit Testing in Xcode: New features in Xcode 16 allow for comprehensive testing of in-app purchase flows, including privacy policy and license agreement testing locally.
- StoreKit Configuration File: Setting up a StoreKit configuration file with product metadata is essential for getting in-app purchase UI working with Xcode previews.
-
Subscription Store View:
- Custom Control Styles: Starting in iOS 18, developers can create custom control styles for subscription stores. This includes using the same primitives that StoreKit uses to create standard styles.
- Subscription Promotional Offer: A new view modifier called
subscriptionPromotionalOffer
allows developers to show promotional offers in the UI of a subscription store view.
-
App Store Offers:
- Win-Back Offers: New APIs and tools to support win-back offers, which are designed to re-engage lapsed subscribers. This includes streamlined purchasing and eligibility checks.
- Offer Discount Type: New fields in the App Store server APIs provide detailed information about offers, such as whether they are free trials, pay-as-you-go, or pay-upfront.
Relevant Timestamps:
- What’s new in StoreKit and In-App Purchase (21:06): Update to StoreKit 2
- Implement App Store Offers (25:38): Supporting Win-Back Offers
For more detailed information, you can refer to the sessions directly:
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.
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.