hi,
onPurchaseCompleted (or any other event) is not fired.
I present the paywall like:
.sheet(isPresented: $showPaywall) {
PaywallView(displayCloseButton: true)
.onPurchaseCompleted { customerInfo in
print("onPurchaseCompleted")
}
...
.onRequestedDismissal() is only fired when I manually tap on close button on paywall.
Im using 5.33.0 version. Im testing on my real device iPhone 15 pro max, ios 18.5. Alo does not work on simulator etc.
I have removed lib, add it again, cleared cache...
This is getting very annoying.
some debug info
are no requests currently running, starting request POST /v1/receipts
DEBUG: ℹ️ API request started: POST '/v1/receipts'
DEBUG: ℹ️ API request completed: POST '/v1/receipts' (200)
DEBUG: ℹ️ PostReceiptDataOperation: Finished
INFO: 💰 Finishing transaction '...' for product '...monthly'
DEBUG: ℹ️ Serial request done: POST /v1/receipts, 0 requests left in the queue
DEBUG: ℹ️ Sending updated CustomerInfo to delegate.
DEBUG: ℹ️ Detected active subscriptions changed. Clearing trial or intro eligibility cache.
DEBUG: ℹ️ PurchasedProductsFetcher: invalidating cache
INFO: 😻💰 Purchased product - '....monthly'
DEBUG: ℹ️ PostPaywallEventsOperation: Started
DEBUG: ℹ️ There are no requests currently running, starting request POST /v1/events
DEBUG: ℹ️ API request started: POST '/v1/events'
DEBUG: ℹ️ API request completed: POST '/v1/events' (200)
DEBUG: ℹ️ PostPaywallEventsOperation: Finished
DEBUG: ℹ️ Events flush succeeded
DEBUG: ℹ️ Serial request done: POST /v1/events, 0 requests left in the queue
DEBUG: ℹ️ StoreKit.Transaction.updates: received transaction for product '....monthly'
DEBUG: ℹ️ StoreKit.Transaction.updates: received transaction for product '...monthly'
DEBUG: ℹ️ Found 0 unsynced attributes for App User ID: ...
DEBUG: ℹ️ StoreKit.Transaction.updates: received transaction for product '....monthly'
DEBUG: ℹ️ Found 0 unsynced attributes for App User ID: ...
DEBUG: ℹ️ Found 0 unsynced attributes for App User ID: ...
DEBUG: ℹ️ TransactionPoster: handling transaction '..' for product '....monthly' (date: 2025-07-22 16:42:33 +0000)
DEBUG: ℹ️ TransactionPoster: handling transaction '...' for product '....monthly' (date: 2025-07-22 16:42:33 +0000)
DEBUG: ℹ️ TransactionPoster: handling transaction '...' for product '...monthly' (date: 2025-07-22 16:42:33 +0000)
DEBUG: ℹ️ Skipping products request for these products because they were already cached: ["...monthly"]
DEBUG: ℹ️ Skipping products request for these products because they were already cached: ["...monthly"]
DEBUG: ℹ️ Skipping products request for these products because they were already cached: ["...monthly"]
DEBUG: ℹ️ PostReceiptDataOperation: Started
DEBUG: ℹ️ PostReceiptDataOperation: Posting JWS token (source: 'queue'):
eyJhbGciOiJFUzI1NiIsIng1YyI6W...2ODUxMn3vKA
DEBUG: ℹ️ PostReceiptDataOperation: Started
DEBUG: ℹ️ PostReceiptDataOperation: Posting JWS token (source: 'queue'):
eyJhbGciOiJFUzI1NiIsIng1YyI6W...2ODUxMn3vKA
DEBUG: ℹ️ PostReceiptDataOperation: Started
DEBUG: ℹ️ PostReceiptDataOperation: Posting JWS token (source: 'queue'):
eyJhbGciOiJFUzI1NiIsIng1YyI6W...2ODUxMn3vKA
DEBUG: ℹ️ There are no requests currently running, starting request POST /v1/receipts
DEBUG: ℹ️ There are no requests currently running, starting request POST /v1/receipts
DEBUG: ℹ️ API request started: POST '/v1/receipts'
DEBUG: ℹ️ API request started: POST '/v1/receipts'
DEBUG: ℹ️ There are no requests currently running, starting request POST /v1/receipts
DEBUG: ℹ️ API request started: POST '/v1/receipts'
ERROR: 😿‼️ There was an unknown backend error. This fetch token is currently being ingested. Please retry the request again to ensure any changes since the initial request are ingested. (7746)
DEBUG: ℹ️ API request failed: POST '/v1/receipts' (529): There was an unknown backend error. This fetch token is currently being ingested. Please retry the request again to ensure any changes since the initial request are ingested. (7746)
Request-ID: 'b576b511-2ff5-42c4-...'; Amzn-Trace-ID: 'Root=1-687fbf81-...'
DEBUG: ℹ️ PostReceiptDataOperation: Finished
INFO: ℹ️ Encountered a server error. Will attempt to compute an offline CustomerInfo from local purchases.
DEBUG: ℹ️ Serial request done: POST /v1/receipts, 0 requests left in the queue
ERROR: 😿‼️ There was an unknown backend error. This fetch token is currently being ingested. Please retry the request again to ensure any changes since the initial request are ingested. (7746)
DEBUG: ℹ️ API request failed: POST '/v1/receipts' (529): There was an unknown backend error. This fetch token is currently being ingested. Please retry the request again to ensure any changes since the initial request are ingested. (7746)
Request-ID: '2e026c26-...; Amzn-Trace-ID: 'Root=1-687fbf81-...'
DEBUG: ℹ️ PostReceiptDataOperation: Finished
INFO: ℹ️ Encountered a server error. Will attempt to compute an offline CustomerInfo from local purchases.
DEBUG: ℹ️ Serial request done: POST /v1/receipts, 0 requests left in the queue
DEBUG: ℹ️ PurchasedProductsFetcher: fetching products from StoreKit
DEBUG: ℹ️ PurchasedProductsFetcher: fetching products from StoreKit
DEBUG: ℹ️ API request completed: POST '/v1/receipts' (200)
DEBUG: ℹ️ PurchasedProductsFetcher: fetched 1 products from StoreKit
DEBUG: ℹ️ PostReceiptDataOperation: Finished
INFO: 💰 Finishing transaction '….' for product '....monthly'
DEBUG: ℹ️ Serial request done: POST /v1/receipts, 0 requests left in the queue
INFO: ℹ️ Computed offline CustomerInfo from 1 products with 1 active entitlements.
DEBUG: ℹ️ Purchased products: [….monthly]. Active entitlements: [defaultSubscriptions].
DEBUG: ℹ️ CustomerInfo was computed offline. Won't be stored in cache.
DEBUG: ℹ️ Sending updated CustomerInfo to delegate.
DEBUG: ℹ️ Detected active subscriptions changed. Clearing trial or intro eligibility cache.
DEBUG: ℹ️ PurchasedProductsFetcher: invalidating cache
DEBUG: ℹ️ PurchasedProductsFetcher: fetched 1 products from StoreKit
INFO: ℹ️ Computed offline CustomerInfo from 1 products with 1 active entitlements.
DEBUG: ℹ️ Purchased products: [....monthly]. Active entitlements: [defaultSubscriptions].
DEBUG: ℹ️ CustomerInfo was computed offline. Won't be stored in cache.
DEBUG: ℹ️ Sending updated CustomerInfo to delegate.
DEBUG: ℹ️ Detected active subscriptions changed. Clearing trial or intro eligibility cache.
DEBUG: ℹ️ PurchasedProductsFetcher: invalidating cache
DEBUG: ℹ️ Sending updated CustomerInfo to delegate.
DEBUG: ℹ️ Detected active subscriptions changed. Clearing trial or intro eligibility cache.
DEBUG: ℹ️ PurchasedProductsFetcher: invalidating cache
