Storekit2

Generated on 3/14/2025

1 search

StoreKit 2 introduces several enhancements and new features for handling in-app purchases. It uses modern language features like the Swift Async/Await pattern to perform tasks such as fetching product metadata, purchasing, and retrieving customer transaction history. StoreKit 2 also provides automatic cryptographic validation and supports new app store features even on devices with older operating systems, thanks to the back-deployed attribute in Swift.

Starting with iOS 18, the original API for in-app purchases is deprecated, and developers are encouraged to update their apps to use StoreKit 2. This new version offers improvements like always-available customer transaction history and subscription renewal information.

For more details, you can refer to the session What’s new in StoreKit and In-App Purchase (21:06).