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

How can we track user subscription with purchaseUpdatedListener #2733

Open
OpenTasteSG opened this issue May 6, 2024 · 0 comments
Open

How can we track user subscription with purchaseUpdatedListener #2733

OpenTasteSG opened this issue May 6, 2024 · 0 comments

Comments

@OpenTasteSG
Copy link

Question 1:
If we have a subscription that is auto renew monthly, from what I understand, every month, the app will trigger purchaseUpdatedListener when the subscription is renewed?

If a user uses multiple accounts on the app, how to we know the purchase returned belong to which account that user purchased?

eg. User login account A. Buy a monthly subscription. Logged out and use account B. When the account A subscription is renewed, will the even purchasedUpdatedListener be triggered when logged in as account B on the app on the same device?

Question 2:
If we do not call finishTransaction, will the user still get charged or the subscription will get voided? eg. User never used the app for quite a while, but the subscription is not cancelled, so the purchaseUpdatedListener will not get triggered since the app not started, or the event will still run in background?

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