StoreKit 2 Demo app
Implementing On-Device Subscriptions with StoreKit 2 in Swift
These steps pair with the blog post. Not every step has a code change involved which is why it appears some steps are missing.
Each step has its own individual Xcode project and runs using a StoreKit Configuration File so no App Store Connect account or configuration is required.
- Listing products
- Purchase products
- Preparing for unlocking in-app features
- Unlocking in-app features
- Handling purchased products when offline
- Restoring purchases
- Sharing active purchases with extensions
- Handling renewals, cancellations, billing issues, and more
- Validating receipts
- Support in-app purchases from App Store
Implementing StoreKit 2 with a server
Disclaimer
These sample apps were designed to follow the blog post and provide as much succinctness and readability as possible. There will be different (and maybe better) ways to implement these steps for your own app.