Question

presentCodeRedemptionSheet Bug

  • 29 October 2023
  • 1 reply
  • 71 views

Badge +1
Purchases.shared.presentCodeRedemptionSheet()

We encountered an issue when trying to use this code for the promotion redemption.

On the iPad, the screen appears normally and I can enter the redemption code. However, after I input the password and receive a transaction completion notification, my app doesn't actually subscribe successfully. Attempting to restore the subscription also doesn't retrieve any successful transactions. This issue persists across all versions we've tried.


1 reply

Userlevel 4
Badge +6

Hey @aki-Hyouka,

Unfortunately, `presentCodeRedemptionSheet` has been notioriously unstable since Apple launched it. We recommend against using it, and instead using a URL with the prefilled code for redemption that redirects to the App Store: https://www.revenuecat.com/docs/ios-subscription-offers#option-1-in-app-redemption-sheet

Reply