I am testing purchases in sandbox. I have purchased a subscription before, and it has expired.
When I go in to purchase again, `Purchases.purchasePackage` prints purchase successful immediately and returns nothing and stalls.
I am testing purchases in sandbox. I have purchased a subscription before, and it has expired.
When I go in to purchase again, `Purchases.purchasePackage` prints purchase successful immediately and returns nothing and stalls.
Hi
Happy to help here! Is this issue still occurring?
If so can you please send over some debug logs?
You can enable debug logs by following this guide. After they're enabled you'll see logs like this in the console:
[Purchases] - DEBUG: No cached entitlements, fetching
[Purchases] - DEBUG: GET /v1/subscribers/<APP_USER_ID> 200
[Purchases] - DEBUG: Purchaser info updated, sending to delegate
Please ensure the debug logs include the entire app life-cycle, including the messages printed during initialization of the SDK. The more information you include here, the better we'll be able to help.
Let me know if you have any questions!
I have the same issue. For my monthly package, Purchases.purchasePackage() does not open iOS purchase modal in sandbox and instantly returns. Works fine with Annually.
It’s the same piece of code with different products from getOfferings.
If it failed instead of returning successfully, it would be great we could just handle the failure.
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.