Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Superwall.shared.subscriptionStatus not yielding when status changes #61

Open
thomasviana opened this issue Feb 27, 2025 · 1 comment
Open

Comments

@thomasviana
Copy link

Right now i am trying to use either the delegate or the Superwall.shared.subscriptionStatus and non of them are working when it comes to listen to status changes.

To be clear, I am not using a PurchaseController.

The new SuperwallBuilder is changing the status, but the others are not... and i dont want to handle logging and other stuff with the SuperwallBuilder given it's more for UI stuff.

I was trying something like this in the initState()

   _subscriptionStatusSubscription = Superwall.shared.subscriptionStatus.listen((status) {
      if (status is SubscriptionStatusActive && _status is! SubscriptionStatusActive) {
        _status = status;
        print('Purchase Made');
      }
    });

And the onDismiss dont have a PaywallResult even though the documentations says it has it.

Image

Using flutter 3.24.3
superwallkit_flutter 2.0.1

@thomasviana
Copy link
Author

What's the best way to know when a purchase is made and which product did the user purchased if those things are not working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant