what's new in storekit

Generated on 8/2/2024

3 searches

What's New in StoreKit

Session: What’s new in StoreKit and In-App Purchase

  1. Core API Enhancements:

    • Transaction History: Starting in iOS 18, the transaction history APIs now include finished transactions for consumables, which were previously not accessible.
    • Deprecation of Original API: The original API for in-app purchases is deprecated starting with iOS 18. Existing apps will continue to work, but the legacy API won't receive any enhancements or new features. Developers are encouraged to update to StoreKit 2 for better features and support.
  2. Modern Language Features:

    • Swift Async/Await: StoreKit 2 uses the Swift Async/Await pattern for tasks like fetching product metadata, purchasing, and retrieving customer transaction history.
    • Back Deployed Attribute: This allows access to new App Store features even on devices with older operating systems.
  3. Merchandising Using SwiftUI:

    • Subscription Store View: New features have been added to the subscription store view to help merchandise in-app purchases more effectively.
    • View Modifiers: New view modifiers like subscription promotional offer and Preferred subscription offer allow for better customization of the subscription store view.
  4. Testing Enhancements in Xcode:

    • StoreKit Testing: Numerous updates have been made to StoreKit testing in Xcode, including the ability to test privacy policies and license agreements locally.
    • Deferred Configuration: Developers can defer configuring products in App Store Connect until they have ensured the app behaves as expected.

For more detailed information, you can watch the session What’s new in StoreKit and In-App Purchase.

Session: Implement App Store Offers

  1. Win-back Offers:

    • New APIs: Updated subscription offer APIs to support Win-back offers.
    • Merchandising: Use StoreKit views to display and merchandise in-app purchases, including Win-back offers.
  2. Streamlined Purchasing:

    • Testing in Xcode: Use StoreKit testing in Xcode to test purchase intent, listener, and deferral logic.

For more details on implementing offers, you can watch the session Implement App Store Offers.

Relevant Sessions

  1. What’s new in StoreKit and In-App Purchase
  2. Implement App Store Offers