Skip to main content
Question

Aliasing two user IDs


Forum|alt.badge.img

Hello,

We are in the process of developing a so-called “web2app” onboarding for our iOS app.

Currently, all purchases are handled by Apple using IAP:s. Soon, some purchases will be handled by a third party, before the user has even opened our app. In this case, the user will go through a web flow to create their account and pay for our product, after which a webhook is posted to us with some information about the user and their purchase. At this point we will create a record for the user in our system.

Now, to my question:

The 3rd party payment processing entity will generate a user id, which they will use when posting information about the premium purchase to RevenueCat and to our system (using webhooks). After the user downloads the app, they will be able to authenticate as the user we have created in our system. However, we want to alias the user id given to RevenueCat (generated by the 3rd party), with the user id in our system.

Is there a way to achieve this using the RevenueCat iOS SDK?

Best Regards,
Viktor

4 replies

chris_perriam
RevenueCat Staff
Forum|alt.badge.img+4

Hi ​@vrutberg in the scenario you described, is there any entity (3rd party, your system, your app) which has knowledge about the relationship between both IDs for a given user?

For example, does your backend system have knowledge that person A has a purchase with ID 3rd-party-user-123 and an ID in your system as system-user-987?


Forum|alt.badge.img
  • Author
  • New Member
  • 2 replies
  • June 2, 2025

Hi ​@chris_perriam,

Yes, both our backend system and our iOS app know about the relationship between these two IDs, so they would both be able to create an alias between them.


chris_perriam
RevenueCat Staff
Forum|alt.badge.img+4

Thanks for confirming that. Could you please create a support ticket via your RevenueCat account? We’ll be able to advise the best way for you to proceed with this particular integration.

Here’s a link for creating a ticket: https://app.revenuecat.com/settings/support (reply here once you’ve done so and we can ensure it gets to the right people)


Forum|alt.badge.img
  • Author
  • New Member
  • 2 replies
  • June 5, 2025
chris_perriam wrote:

Thanks for confirming that. Could you please create a support ticket via your RevenueCat account? We’ll be able to advise the best way for you to proceed with this particular integration.

Here’s a link for creating a ticket: https://app.revenuecat.com/settings/support (reply here once you’ve done so and we can ensure it gets to the right people)

Absolutely, I’ve done so now. Thanks a bunch!


Reply


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