-
Notifications
You must be signed in to change notification settings - Fork 84
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
Purchases.purchasePackage hangs in the try block or goes directly into the finally block without resolving/rejecting the promise #1082
Comments
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out! |
Same here |
@bilal1031 Do you get the logs from right before purchasePackage but not the ones after? Is it possible that |
In my case, when I execute Purchases.purchasePackage, the native iOS payment system opens, and the whole process finishes with 'Ok', but it doesn't return control back to my app. Instead, the native iOS payment system reappears. On Android, it works perfectly. I'm using the same versions of the libraries as @bilal1031 |
Yes, I get the logs from right before purchasePackage but not the ones after. I also reviewed the code and confirmed that the |
any news? |
Uhm, is anyone at RevenueCat aware that this issue is a real blocker for adoption? In our case, most of the time, the native purchase UI does not even appear. The call to |
Describe the bug
I encountered an issue with the subscription process. Initially, I purchased a subscription and subsequently canceled it. After a few minutes, I attempted to repurchase the subscription, having confirmed through the webhook that the CANCELLATION event had been triggered. The Apple subscription process proceeded as expected, and I received an alert indicating that the purchase was successful. However, the function call
Purchases.purchasePackage
, which is expected to either resolve or reject the promise, appears to hang instead.When a finally block is included, the execution proceeds to that block, but the expected resolution or rejection of the promise does not occur. Additionally, if I comment out the finally block, the line
log('json', purchaseResponse))
is never executed, indicating that the function is stalling at this point.This behavior suggests that something is preventing the function from properly resolving or rejecting the promise after the purchase process.
Additional context
The text was updated successfully, but these errors were encountered: