What's new with StoreKit?

Generated on 7/30/2024

1 search

Tailscan

This post is brought to you by Tailscan, the best devtool for Tailwind CSS.

What's New with 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. Developers are encouraged to update to StoreKit 2 for continued support and new features.
  2. Merchandise Using SwiftUI:

    • Subscription Store View: New features have been added to the subscription store view, allowing for better customization and merchandising of in-app purchases.
    • Subscription Promotional Offer: A new view modifier called subscriptionPromotionalOffer allows developers to show promotional offers in the UI of a subscription store view.
  3. Testing in Xcode:

    • StoreKit Testing Enhancements: New features in Xcode 16 make it easier to test in-app purchase flows. This includes the ability to test privacy policies, license agreements, and localizations for subscription groups directly within Xcode.
    • Deferred Configuration: Developers can defer configuring their products in App Store Connect until they have ensured their app behaves as expected.
  4. Update to StoreKit 2:

    • Modern Language Features: StoreKit 2 uses modern language features like the Swift Async/Await pattern for tasks such as fetching product metadata, purchasing, and retrieving transaction history.
    • Back Deployment: Thanks to the back-deployed attribute in Swift, StoreKit 2 allows access to new App Store features even on devices with older operating systems.

Session: Implement App Store Offers

  1. Updates to Offers:

    • Offer Data in Server APIs: New fields in the App Store server APIs provide detailed information about offers, including offer identifier, offer type, and offer discount type.
    • Win-Back Offers: New APIs and configurations to support win-back offers, which can be promoted on the App Store and redeemed by customers using streamlined purchasing.
  2. Streamlined Purchasing:

    • Testing Win-Back Offers: Developers can start adding support and testing win-back offers in their apps using StoreKit testing in Xcode.

For more detailed information, you can watch the sessions: