Skip to main content
Question

iOS Offer Code

  • June 4, 2024
  • 1 reply
  • 77 views

Forum|alt.badge.img+4

How does RevenueCat identify the transaction associated with a particular user when the user makes a purchase using an offer code through an external link that directs them to the App Store, instead of using the presentCodeRedemptionSheet method?

This post has been closed for comments

1 reply

Michael Fogel
Forum|alt.badge.img+6
  • Dedicated Contributor
  • 382 replies
  • June 6, 2024

Hey @jegoapp 

 

When users click your link within your app to redeem the offer code, it will take them outside of the app to complete the purchase. Once this is done, it is important to call syncPurchases when the user returns back to your app to retrieve their purchase. This may be done by recording when the user leaves the app due to the link, and calling syncPurchases when the user returns to the app. If not, the user may need to trigger a restore within your app when they come back for us to see that the purchase was made and with an offer code. 

 

The restore functionality allows us to re-sync the purchase from the store account after it was made and see the offer attached to it.

 

Let me know if that helps! 


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