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

syncPurchases method with return value of CustomerInfo #1209

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MyisCARRY
Copy link

@MyisCARRY MyisCARRY commented Nov 14, 2024

Thank you for contributing to Purchases. Before pressing the "Create Pull Request" button, please provide the following:

  • A description about what and why you are contributing, even if it's trivial.

  • The issue number(s) or PR number(s) in the description if you are contributing in response to those.

  • If applicable, unit tests.

Description

I am adding syncPurchaseWith method that returns CustomerInfo after syncing purchases. The current syncPurchases method returns void and we need to wait until new CustomerInfo arrives in the addCustomerInfoUpdateListener - which we don't know when and if will happen. In my case I need this new CustomerInfo immediately after syncing because logic of showing paywalls depends on this info.

We could also instead of creating new method just adjust existing one, it is up to you.

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

Successfully merging this pull request may close these issues.

1 participant