Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

Latest commit

 

History

History
33 lines (30 loc) · 1.74 KB

10140.md

File metadata and controls

33 lines (30 loc) · 1.74 KB
contributors
Jeehut

API Updates

  • Promoting of In App Purchases possible in Connect
  • Receive promotion purchases with PurchaseIntent.intents
  • Need to call .purchase after checking .canProcessPurchase
  • You can chang eorder of promotions locally
  • You can also change visibility in App Store
  • New fields .storefront, .storeFrontCountryCode, and reason (customer purchase vs. recurring) field in Transaction
  • New field renewalDate on RenewalInfo
  • New 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 ProductView for showing exactly 1 productID (like non-consumable)
  • New StoreView for showing many ids in a list
  • New SubsriptionStoreView for showing all subsriptions in a subscription group in a list
  • Many 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
  • SKTestSession with purchase APIs allows the same adjustments as listed above in unit tests via .setSimulatedError, .timeRate, etc.