Skip to main content
Question

App User ID assignation with promo-code


Forum|alt.badge.img+3

Hello,

We’re looking at the behavior of RevenueCat when using promo-code in the device store (Google Play, Apple Store) and would like the community to confirm or correct these statements:

  • When a promo-code is entered in the device store, our app isn’t active and thus can’t look in our code for the App User Id.
  • RevenueCat save some attribute (IP Address? MAC Address?) from the transaction to recognize the user.
  • If only one existing App User Id has this attribute, it link the promo-code to this id.
  • If several existing App User Id have this attribute, it link the promo-code to the latest active id.
  • If no App User Id has this attribute, RevenueCat create a new App User Id with the promo-code
  • If the promo-code has been assigned to App User Id X but the user log in with App User Id Y, they’ll not get paid access and will see the paywall.
  • In this case, the user can click on Restore purchase in the paywall to get access without login with App User Id X.
  • This however will take 1-2 minutes before being effective.

Thank you

This post has been closed for comments

2 replies

wes_clark
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 297 replies
  • April 29, 2025

Hi! When a purchase is made with a promo code or through another method in which it is not while the app is active, RevenueCat will have to wait until the receipt is sent from the device when the app is active or until the server notification event with the purchase is received if using the option to track new purchases via server notifications (For example, here is our documentation on doing so through Apple). In terms of the flow with the receipt, the transaction with the promo code will be attributed to the app user ID, whether an anonymous RevenueCat one or a custom ID, from which the receipt came after the SDK posted it to our servers once configured. 


Forum|alt.badge.img+3
  • Author
  • Helper
  • 11 replies
  • April 30, 2025

Hi.

I’m not sure I’m understanding you. You’re saying that if a user use one of our promo-code in the Google Play Store, RevenueCat won’t get notified until our app is opened on the same device? How do these two events related? Do-we need to call a specific function?

Right now we have not enabled the server notifications on neither Apple nor Google. So if a user use a promo-code on its phone but then open our app on its tablet (both of the device linked with the same Google account), the user will never get the paid access? If we enable server notifications, then the user doing the same use-case will have access?


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