iOS getAppTransactionIOS
Fetch the current app transaction (iOS 16+, macOS 14+).
Wraps AppTransaction.shared — the JWS-verified record of how the app was acquired. iOS 16+, macOS 14+. See the Apple StoreKit reference.
Signature
func getAppTransactionIOS() async throws -> AppTransaction?Returns#
Promise<AppTransaction | null> — JWS-verified record of how the app was acquired. Returns null when no app transaction is available. Requires iOS 16+ or macOS 14+.
Example
let appTx = try await OpenIapModule.shared.getAppTransactionIOS()See: AppTransaction for the full field reference (bundleId, appVersion, originalAppVersion, originalPurchaseDate, environment, deviceVerification, deviceVerificationNonce, signedDate, appId, appVersionId, preorderDate, appTransactionId (introduced on iOS 18.4, macOS 15.4, tvOS 18.4, watchOS 11.4, and visionOS 2.4 and back-deployed by Xcode 16.4+), and originalPlatform (typed at those runtime floors, with a compatibility string on the AppTransaction baseline).