Skip to content

[FEATURE REQUEST] Differentiate paywall close reasons between paid or deep link (or any others) when onDismiss handler is invoked #232

Description

@irwinb

Is your feature request related to a problem? Please describe.
We would like to track when a purchase is made and which product was purchased. Today, the onDismiss handler is called with close reason .systemLogic under at least three circumstances: purchase completed, deep link presented, or some kind of failure.

For that last reason, we did not expect to be called. We only observed this for users where in a particular region, the paywall for some reason doesn't load, and the user attempts to load it many times (sometimes > 10), till eventually onDismiss gets called with .systemLogic. We know no purchase was made because, using StoreKit, we try to retrieve the last transaction, which returns nothing.

(I have opened a ticket with Superwall support to look into why the paywall is failing to load at all but that's a separate issue.)

Describe the solution you'd like
A breakdown of why the paywall was dismissed so we can track what was done in our own systems accurately.

Describe alternatives you've considered
Today, we can do it by looking at various signals and querying the user's latest transaction, but it would be nice if the onDismiss callback contained that information.

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions