Better Programming

Advice for programmers.

Follow publication

Member-only story

Play Around With StoreKit 2 in iOS 15

An update 10 Years in the Making

Mark Lucking
Better Programming
Published in
6 min readNov 5, 2021
Photo by Clark Street Mercantile on Unsplash

StoreKit was released for iOS 3.0 a long long time ago — of course, Apple continued to make adjustments, but no major updates. That is until this year at WWDC2021 when Apple announced StoreKit 2, the first major revision in over a decade.

Join me to take a brief tour of the client-side code for this new framework from Apple — although just before you do — be warned StoreKit 2.0 needs iOS15, and if you need to support iOS 14 or less then you should perhaps start here.

Watching the WWDC presentation on the subject and reviewing the code I can understand why they decided to call this StoreKit 2. The new API itself is split into five areas namely, products, purchases, transaction info, transaction status, and subscription status.

An update with some major changes, most notably the replacement of the delegate pattern with the new concurrency async await syntax and the changing of the format of the receipts to JSON, signed using JSON web signatures aka the x5c standard. A single receipt for every transaction. I noted downloading the demo, that it is based on a SwiftUI interface to — take note UIKit stalwarts.

The other major upgrade that I noted in the presentation was linked to the user experience, with StoreKit 2 automatically…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Mark Lucking
Mark Lucking

Written by Mark Lucking

Coding for 35+ years, enjoying using and learning Swift/iOS development. Writer @ Better Programming, @The StartUp, @Mac O’Clock, Level Up Coding & More

No responses yet

Write a response

What I applaud in Mr. Carnevale's piece is an attempt to shift the attention away from affirmative action and college (now, there's a silo) to education reform of K-12 education. In my view, the problem starts when humans by and large support their…

Affirmative Action still around?

interesting