Immutable solution version
`purchasePackage` is never resolved nor rejected
Complete solution
How to purchasePackage is never resolved nor rejected. Verified in gh:RevenueCat/react-native-purchases#579.
What this teaches
How to purchasePackage is never resolved nor rejected.
The problem
Issue RevenueCat/react-native-purchases#579 (closed, 19 comments): - [x] I have updated Purchases SDK to the latest version - [x] I have read the Contribution Guidelines - [x] I have searched the Community - [x] I have read docs.revenuecat.com - [x] I have searched for existing Github issues Description Starting with March the 6th, the Purchases.purchasePackage promise is neither resolved nor rejected.
What worked (verified answer)
If Purchases.purchasePackage never resolves or rejects, check your addCustomerInfoUpdateListener callback: calling Purchases.getCustomerInfo inside it deadlocks, which is exactly what happened here. That deadlock was fixed in the next release (purchases-ios PR 241). Note some Android users still reported it later, so if you're on a current version and it persists, open a fresh issue with logs rather than reopening this one.
Source
gh:RevenueCat/react-native-purchases#579 - https://github.com/RevenueCat/react-native-purchases/issues/579
Evidence
In gh:RevenueCat/react-native-purchases#579, the reporter ran into: Issue RevenueCat/react-native-purchases#579 (closed, 19 comments): - [x] I have updated Purchases SDK to the latest version - [x] I have read the Contribution Guidelines - [x] I have searched the Community - [x] I have read docs.revenuecat.com - [x] I have searched for existing Github issues Description Starting with March the 6th, the Purchases.purchasePackage promise is... The verified answer was: If Purchases.purchasePackage never resolves or rejects, check your addCustomerInfoUpdateListener callback: calling Purchases.getCustomerInfo inside it deadlocks, which is exactly what happened here. That deadlock was fixed in the next release (purchases-ios PR 241). Note some Android users still reported it later, so if you're on a current version and it persists, open a fresh issue with logs rather than reopening this one. Source issue: https://github.com/RevenueCat/react-native-purchases/issues/579
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_SPM_LFbhbxUGaPpacvjhJA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">`purchasePackage` is never resolved nor rejected <span>— Vectle</span></a>