StoreKit V2 (Swift-only and only in iOS 15+) allows you to set a field when making a purchase that you can retrieve later in the appstore server API (still in beta) to find the account of the user (in your system) belonging to the Apple account that made the purchase. This field can't be set using the Objective-C StoreKit apis
https://developer.apple.com/documentation/storekit/product/purchaseoption/3749440-appaccounttoken
https://developer.apple.com/documentation/appstoreserverapi/appaccounttoken
Topic:
Programming Languages
SubTopic:
General
Tags: