New in storekit?

Asked on 06/16/2025

1 search

In the WWDC sessions titled "What’s new in StoreKit and In-App Purchase," several new features and updates were introduced for StoreKit:

  1. StoreKit Configuration in Xcode 16: You can now test your app's privacy policy and license agreement locally. This is available in the StoreKit Configuration file editor under the new app Policy section. Additionally, you can test localizations for your subscription groups' display names.

  2. Core Framework Features: New APIs have been introduced, such as AppTransaction, Transaction, and Renewal info, which provide insights into purchase history and subscription statuses. These updates help manage subscription statuses and purchase history more effectively.

  3. Subscription Status API: Starting with iOS 18.4, you can query StoreKit for a subscription status using the Transaction ID of any transaction associated with a subscription.

  4. Deprecation of Original API: The original API for in-app purchases is deprecated starting with iOS 18. It is recommended to update to StoreKit 2, which offers improvements like automatic cryptographic validation and modern language features.

  5. SwiftUI and StoreKit Views: New ways to merchandise subscriptions using SwiftUI and StoreKit views have been introduced, allowing for more creative control over in-app purchase displays.

  6. Advanced Commerce API: This API supports in-app purchases for large content catalogs and subscriptions with optional add-ons, available in iOS 18.4.

  7. App Store Server Library: New APIs require a JSON Web Signature, and the App Store Server Library can be used to simplify the signing process for in-app purchase requests.

For more detailed information, you can refer to the session What’s new in StoreKit and In-App Purchase (15:35) for testing in Xcode and What’s new in StoreKit and In-App Purchase (00:36) for exploring new features.