Use this page with AI
Copy this into your coding assistant and add your request.
Read https://openiap.dev/docs/apis/ios/get-all-transactions-ios and https://openiap.dev/llms.txt. Follow the reading instructions, detailed reference, and linked guides relevant to my task before making changes.
Inspect my existing project and reuse its framework and conventions. Ask me for missing product decisions. Implement the requested behavior and run the applicable checks.
Show the working result, the commands and actual test results, and any remaining limitations. Keep your explanation brief.
My request: [describe what customers should be able to do]iOS getAllTransactionsIOS
Get the full StoreKit 2 transaction history as PurchaseIOS values. Requires the SKIncludeConsumableInAppPurchaseHistory Info.plist key for finished consumables to be included (iOS 18+).
Iterates Transaction.all. iOS 18+ requires SKIncludeConsumableInAppPurchaseHistory Info.plist key for finished consumables to appear. See the Apple StoreKit reference.
Signature
swift
func getAllTransactionsIOS() async throws -> [PurchaseIOS]Returns#
Promise<PurchaseIOS[]> — array of StoreKit transactions in the iOS-specific shape. See Purchase for the full field reference.
Example
swift
let txs = try await OpenIapModule.shared.getAllTransactionsIOS()