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

Safer PaymentObserver unsubscribe #601

Closed
wants to merge 2 commits into from
Closed

Conversation

Redth
Copy link
Collaborator

@Redth Redth commented May 8, 2024

This ensures no matter what happens with the RestoreCompletedTransactions call, or the callback for the payment observer, that we always unsubscribe from the payment observer's event.

This ensures no matter what happens with the RestoreCompletedTransactions call, or the callback for the payment observer, that we always unsubscribe from the payment observer's event.
@jamesmontemagno
Copy link
Owner

just ping me and let me know when this is ready to roll, i have a few other changes i was going to push too

This way if for some reason the product request fails, or the add payment fails, the observer's event will still be unsubscribed.
@aritchie
Copy link

aritchie commented May 8, 2024

https://github.com/aritchie/InAppBillingPlugin/blob/master/src/Plugin.InAppBilling/InAppBilling.apple.cs

needs some cancellation tokens to prevent things from getting "stuck" as well as the finally blocks

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.

None yet

3 participants