Solved

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

  • 24 September 2021
  • 30 replies
  • 805 views


Show first post

30 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.

Userlevel 2
Badge +4

@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!! 

Userlevel 2
Badge +4

@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! 

Userlevel 1
Badge +2

This issue is resolved in iOS 15.1.

Userlevel 1
Badge +1

Thanks for letting us know!

Reply