Skip to main content
Shows the SDK’s redemption screen for a claim the user already made, and opens the advertiser when the user taps that screen’s button. The SDK saved the claim when the user tapped Claim, then showed its primer, a screen that leads into your own offer. A 'reduceChurn' claim waits for this call; a 'rewardUsers' claim never does. When each one opens the advertiser: The Claim Flow.

When to use this

  • show() resolved claimed on a 'reduceChurn' placement, and your own step (a trial start, a completed cancel) is done.
  • A user comes back on a later page with a claim still waiting.

Signature

redeem() never rejects: a failure resolves dismissed with the error, and the claim stays saved for a later call.

RedeemOptions

RedeemResult

reason is a NotGrantedReason.

getPendingTransaction()

Returns the claim redeem() would take, without showing anything, so you can render your own prompt before calling redeem(). Pass a placement id to look only at that placement. Returns null when nothing is saved, or before configure().
Fields you’ll use:

Examples

On a later page:

Gotchas

  • A saved claim lasts 7 days. After expiresAt, redeem() resolves unavailable.
  • It belongs to this browser and origin, not the user. The claim is stored locally, so it survives a reload unless the browser blocks storage, but not a different browser, device, or origin. identify() does not clear it; call reset() at logout so the next user on the browser can’t redeem it.
  • The advertiser opens from the SDK’s button, not yours. redeem() shows a screen, and the tap on that screen opens the advertiser, so you can call redeem() from any moment. If the browser still blocks the new tab, redeem() resolves dismissed with an error and the claim stays saved.
  • claimed also means the user closed the primer. The claim is saved either way. If you call redeem() straight after show(), a user who closed the primer gets the redemption screen next.
  • The Claim Flow: when the advertiser opens for each use case.
  • show(): the claim that redeem() completes.
  • placement(): the placement id a claim is saved under.