Skip to main content
Question

iOS: Purchases.shared.purchase completion block not called


Forum|alt.badge.img+3

Hi there,

I’m running into a problem where purchases do succeed, but the Purchases.shared.purchase(...) completion block is never called.

I do see INFO: 💰 Finishing transaction in the logs, but the completion block itself is never called.

Purchases.shared.purchase(package: package) { (transaction, customerInfo, error, userCancelled) in
    // Never called
}

I’m trying with a sandbox account on a real device. The same code seems to work for one of my other apps. I’m using purchases-ios 4.17.9.

 

If after a purchase I do a restore purchase action, the entitlement is there for this customer. This confirms that the purchase does succeed.

Any idea why this is happening?

11 replies

Forum|alt.badge.img+5

I have the same problem...


Forum|alt.badge.img+4
  • New Member
  • 3 replies
  • April 14, 2023

we are facing the same issue, and subscriptions have been plummeting because of this for the past couple of weeks. 


Forum|alt.badge.img+5
3asafeer wrote:

we are facing the same issue, and subscriptions have been plummeting because of this for the past couple of weeks. 

Have you tried to contact Support?


Forum|alt.badge.img+4
  • New Member
  • 3 replies
  • April 14, 2023

I just did, as I realized this only today and was trying to debug it until I found this to be the reason. 


Forum|alt.badge.img+3
3asafeer wrote:

I just did, as I realized this only today and was trying to debug it until I found this to be the reason. 

Have you found / received a solution to the problem?


Forum|alt.badge.img+5
Joost van den Akker wrote:
3asafeer wrote:

I just did, as I realized this only today and was trying to debug it until I found this to be the reason. 

Have you found / received a solution to the problem?

Not yet. I contacted RevenueCat but they has not responded me since yesterday…


Forum|alt.badge.img+2
  • New Member
  • 1 reply
  • April 15, 2023

I’m seeing the same issue too in testing, I’ve raised a GitHub issue here.


Forum|alt.badge.img+4
  • New Member
  • 3 replies
  • April 16, 2023

They responded that it’s a testing account only problem, which I know first hand it’s not. I tried to purchase in production and got the same issue. And same is happening with new sandbox testers too… no response with a solution yet from revenueCat and this is an urgent critical issue. I’m really disappointed. Please let me know if any of you, get a solution to the problem…

 


sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 513 replies
  • April 19, 2023

Hello,

Thanks all for reporting this bug. Between the various support tickets, this community post, and this GitHub issue, the GitHub issue contains the most context and is being actively investigated, so let’s continue the discussion there. There is a proposed fix that will be shipped soon - it might make sense to wait until that’s shipped. If you all continue to experience issues we absolutely will continue investigating. Again, thanks for reporting this bug and thanks for working with us!


sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 513 replies
  • April 20, 2023

Hey all,

Just to wrap up this community thread, I wanted to mention that our 4.17.11 release of the iOS SDK should address most issues here. I’m aware that others are still experiencing other issues that are probably unrelated to the shipped fix. If that applies to you:

  1. Check the original GitHub issue to see if there are any solutions or other related issues there that you may have missed since then.
  2. Reach out to RevenueCat support if you need additional help.

Forum|alt.badge.img+1
  • New Member
  • 3 replies
  • July 8, 2023

Hey @Joost van den Akker , were you able to resolve this issue?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings