Home / Companies / RevenueCat / Blog / Post Details
Content Deep Dive

Migrating from StoreKit 1 to StoreKit 2

Blog post from RevenueCat

Post Details
Company
Date Published
Author
Charlie Chapman
Word Count
557
Language
English
Hacker News Points
-
Summary

StoreKit 2 was introduced at WWDC 2021 as a modern, Swift-only framework with async APIs, marking a significant update from the original StoreKit introduced in 2009, which is now officially deprecated as of WWDC 2024. While older StoreKit 1 APIs will still function, Apple has indicated that future updates will focus solely on StoreKit 2. RevenueCat, a robust in-app purchase server and client SDK, simplifies the migration to StoreKit 2 by merely updating to its latest version. However, manually transitioning from StoreKit 1 to StoreKit 2 involves significant changes, such as replacing the old receipt with new entities like Transaction and RenewalInfo and using the App Store Server API for verifying various customer purchase data. StoreKit 2 is only compatible with iOS 15 and later, with some APIs introduced in iOS 16, meaning apps supporting older iOS versions must still utilize StoreKit 1 APIs. RevenueCat offers extensive resources and documentation to assist developers in migrating their applications to StoreKit 2, providing comprehensive guidance and support throughout the process.