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