Skip to content

Fixes finishTransaction not resolving for iOS#1665

Merged
hyochan merged 2 commits intohyochan:mainfrom
andresesfm:finish_transaction_not_resolving
Mar 20, 2022
Merged

Fixes finishTransaction not resolving for iOS#1665
hyochan merged 2 commits intohyochan:mainfrom
andresesfm:finish_transaction_not_resolving

Conversation

@andresesfm
Copy link
Copy Markdown
Contributor

@andresesfm andresesfm commented Mar 18, 2022

Fixes #1645 by calling resolve once the SKPaymentQueue finishTransaction has been triggered

Following the history of the file, it looks like this was broken trying to fix #1637 , by adding the promise methods in the header but not calling resolve/reject. I have fixed both methods (finishTransaction and clearTransaction) here credit goes to the people commenting on the issue, it helped a lot to narrow the problem

@andresesfm andresesfm requested a review from hyochan March 18, 2022 18:38
@andresesfm andresesfm added 📱 iOS Related to iOS 🛠 bugfix All kinds of bug fixes labels Mar 18, 2022
@andresesfm
Copy link
Copy Markdown
Contributor Author

Should be merged in tandem with #1662

@andresesfm
Copy link
Copy Markdown
Contributor Author

This could also be related: #1664

Copy link
Copy Markdown
Owner

@hyochan hyochan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't test this now but I'll try to merge this since this looks a bit urgent.

Thanks @andresesfm

@hyochan hyochan merged commit 606cc56 into hyochan:main Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🛠 bugfix All kinds of bug fixes 📱 iOS Related to iOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[8.0.4][iOS] finishTransaction promise never finishes [8.0.1] [iOS] calling finishTransaction crashes app

2 participants