Use this page with AI

Copy this into your coding assistant and add your request.

Read https://openiap.dev/docs/types/purchase-updated-listener-options 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]
See an example request →

PurchaseUpdatedListenerOptions

PurchaseUpdatedListenerOptions#

Options passed when registering purchaseUpdatedListener. The current option is iOS-only and controls whether a listener receives StoreKit replay events for transaction IDs already delivered during the current connection session.

Fields#

NameTypeSummary
dedupeTransactionIOSboolean?iOS only. Defaults to true. When false, the listener also receives StoreKit replay events for a transaction ID already emitted during the current connection session. Android ignores this option.

Default Behavior#

The default is designed for entitlement safety: purchase success handlers run once per iOS transaction ID during one connection session. Set the flag to false only when you need to inspect native StoreKit replay behavior or build your own duplicate handling.

Examples#

swift
OpenIapModule.shared.purchaseUpdatedListener(
    onPurchase,
    options: PurchaseUpdatedListenerOptions(
        dedupeTransactionIOS: false
    )
)