API Updates
Promoting of In App Purchases possible in Connect
Receive promotion purchases with
PurchaseIntent.intentsNeed to call
.purchaseafter checking.canProcessPurchaseYou can chang eorder of promotions locally
You can also change visibility in App Store
New fields
.storefront,.storeFrontCountryCode, andreason(customer purchase vs. recurring) field inTransactionNew field
renewalDateonRenewalInfoNew fields above are back-deployed to iOS 15!
New message reason “billingIssue” added in Messages API
Signing receipts migrates from SHA1 to SHA256 starting June 20, migration complete by August 24
If you’re using StoreKit, nothing to do, StoreKit uses SHA256 already
Build SwiftUI apps
New
ProductViewfor showing exactly 1productID(like non-consumable)New
StoreViewfor showing many ids in a listNew
SubsriptionStoreViewfor showing all subsriptions in a subscription group in a listMany customization options for these views
Use `.manageSubscriptionSheet(isPresented:groupID:)
StoreKit Testing in Xcode
Transaction manager shows all apps and devices now
Open manager via “Debug” menu in Xcode
Purchases can be created directly on the Mac in transaction manager via + button
Lots of customizability when creating purchases, supoprts offers/promotions/reneweable or not/purchase date etc.
No debug session required
New “Configuration Settings” in StoreKit configuration file: Change Storefront/Localization, pass Options, simulate Failures
Set also a “renewal rate” with from 15 minutes down to just 2 seconds
SKTestSessionwith purchase APIs allows the same adjustments as listed above in unit tests via.setSimulatedError,.timeRate, etc.
