StoreKit 2 • Purchase Result wrong when Ask to Buy is cancelled (no tap on Ask)

Hello,

When 'Ask To Buy' is enabled, and the user cancels the request (left button on the provided screenshot below), the purchaseResult in iOS 15 is set to .pending when we call try await product.purchase(). It's wrong, it should be set to .userCancelled because the parent will never receive any approval request in this case. It breaks the logic in my app because tracking real pending requests is then not possible.

I also think that a declined transaction should be made available to the app in the transactions observer: how can we remove a pending transaction that had been declined? We can't for the moment.

Thanks, Axel

  • Do you have a feedback number I can dupe? Seems I have the same issue

Add a Comment