Skip to main content
Answer

When `created a new alias` will be executed by Identified user?

  • February 24, 2022
  • 1 reply
  • 669 views

Forum|alt.badge.img+7

MyApp requires signIn operation for purchase.

And also, `Purchases.logIn("my_app_user_id");` after signIn.

 

But, `created a new alias`  executed about 1 month after purchased.

This occurs a few users. Why??

In the period, it has been used `$RC:AnonymouseID:xxx` instead of `my_app_user_id`.

It is not expected. it should create alias as `my_app_user_id` as soon as possible(ex. next to First seen using the app).
 

Any help, please🙏

 

Best answer by Andy

Hey @Tsuruoka Hideki

 

When the SDK is configured, if an appUserID is not passed in, an anonymous ID will be created. 

Then upon calling logIn, the appUserID will be aliased to the anonymous ID. 

 

I think what might be happening here is that the app was uninstalled in the period between the original subscription and the trial conversion. 

 

Then the customer gets charged because they haven’t cancelled their subscription, so they see that and they install and open up the app. The app is configured with an anonymous ID again (a new one this time, since it’s a fresh install), and then they logIn, so the alias is created between their new anonymousID and their logged in user. 

 

Hope that makes sense! 

 

This post has been closed for comments

1 reply

Andy
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • Answer
  • February 25, 2022

Hey @Tsuruoka Hideki

 

When the SDK is configured, if an appUserID is not passed in, an anonymous ID will be created. 

Then upon calling logIn, the appUserID will be aliased to the anonymous ID. 

 

I think what might be happening here is that the app was uninstalled in the period between the original subscription and the trial conversion. 

 

Then the customer gets charged because they haven’t cancelled their subscription, so they see that and they install and open up the app. The app is configured with an anonymous ID again (a new one this time, since it’s a fresh install), and then they logIn, so the alias is created between their new anonymousID and their logged in user. 

 

Hope that makes sense!