Skip to main content
Solved

iOS 15/Xcode 13 [[RCPurchases sharedPurchases] offeringsWithCompletionBlock:] is never called


Did this post help you find an answer to your question?
Show first post

33 replies

Hi @Andy@smudge.io@Andrew Edwards 

Is this maybe the fix that it is now showing the error that is caused by the test environment of Apple?

I’d be happy to try it but could not make it clear to me how I should try it out in my flutter app. If necessary, I can surely try if you would be able to provide step by step instructions on how I should use this branch in the app.


Andy
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 237 replies
  • October 20, 2021

@smudge.io I believe I should have been more clear as to what the fix does: it only introduces a timeout to ensure that the method at least returns a value. The real fix needs to come from Apple and go into the OS itself, so this timeout (plus some logs) is the best we can do in the meantime. 

From the notes in the summary post

We worked on a patch to address this behavior. While we cannot fix the iOS bug ourselves, we’ve introduced a timeout to the SKProductsRequest, which should ensure that getOfferingsreturns a value (an error, in the case of this bug).

 

We’ve heard some people report that this issue is fixed in iOS 15.1, but I can’t verify that since I don’t have an account that reproduces the issue in the first place. 

Thanks for testing!! 


Andy
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 237 replies
  • October 20, 2021

@Sinecan Anhammer 

Is this maybe the fix that it is now showing the error that is caused by the test environment of Apple?

 

Exactly right, the fix is to actually produce an error instead of waiting forever for Apple to return a value. 

 

I’d be happy to try it but could not make it clear to me how I should try it out in my flutter app. If necessary, I can surely try if you would be able to provide step by step instructions on how I should use this branch in the app.

I’m working on propagating this fix to Flutter, I will keep you posted. Thanks for offering to test! 


Forum|alt.badge.img+3
  • Author
  • Helper
  • 8 replies
  • Answer
  • October 27, 2021

This issue is resolved in iOS 15.1.


  • 0 replies
  • October 28, 2021

Thanks for letting us know!


Forum|alt.badge.img+1
  • New Member
  • 2 replies
  • January 19, 2022

how to get latest receipt info in webhook after verification done by revenuecat


Forum|alt.badge.img+2
  • New Member
  • 3 replies
  • February 2, 2022

This issue is however happening to all of my production users who upgraded to iOS 15 (15.2 at the time of writing).   The Purchases.shared.offerings callback has always worked fine in iOS 14 and can run without issue on iOS 15 in the simulator, but when in production or testing on physical device the callback doesn’t fire (ie, not a sandbox account issue).  I noticed this when I checked the monthly report and all iOS purchases had stopped.  Upgraded from v3.11 to v3.14 but still had the same issue.  Could really use some help here if anyone was in the same situation and was able to resolve this problem.  Thanks in advance.


Forum|alt.badge.img+2
  • New Member
  • 3 replies
  • February 5, 2022

My issue was caused by this.  The IOS upgrade turned out to be a red herring.


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