Skip to main content
Question

After purchase new alias & app user id created?


Forum|alt.badge.img+2

Hello! when user make purchase new alias created, even on Webhooks there is only 1 alias and original app user id is no correct
I am losing subscribers right now and getting refund because I cannot update the user as premium

Please check screenshots

 

 

 

I perceive that my sdk version were 5.6.0 when I update it it updated to 5.20.0 maybe that was the issue 

?

4 replies

jeffrey_bunn
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 268 replies
  • March 20, 2025

Hi ​@hexadec - To ensure you only use custom app user IDs, there are a few things you need to ensure:

  1. Never call configure without passing in a custom user ID
  2. Never call logOut. If you want to login a different user, just call login without first calling logOut
  3. Turn off server purchase tracking (Apple, Google)

Can you ensure these are all completed and let me know if it resolves the issue? Thanks!


Forum|alt.badge.img+2
  • Author
  • Active Member
  • 10 replies
  • March 21, 2025
jeffrey_bunn wrote:

Hi ​@hexadec - To ensure you only use custom app user IDs, there are a few things you need to ensure:

  1. Never call configure without passing in a custom user ID
  2. Never call logOut. If you want to login a different user, just call login without first calling logOut
  3. Turn off server purchase tracking (Apple, Google)

Can you ensure these are all completed and let me know if it resolves the issue? Thanks!

when I turned off this feature , some purchases cannot be visible on revenuecat neither web hook works?

if I turn of this feature I cannot catch user made premium right? 

 



can someone explain me why new alias created after purchase made?


Forum|alt.badge.img+2
  • Author
  • Active Member
  • 10 replies
  • March 21, 2025

still losing users since your system does not detect the user id nor revenuecat id , your system create new account when purchase made lol. what a shame for revenue cat, I am gonna think about change my whole system.. 1 more user..

 



here coming web hook data 

 

 

{

"api_version": "1.0",

"event": {

"aliases": [

"$RCAnonymousID:8791cc8bd2ee4b94a94d15a83f6903c9"

],

"app_id": "",

"app_user_id": "$RCAnonymousID:8791cc8bd2ee4b94a94d15a83f6903c9",

"commission_percentage": 0.125,

"country_code": "FR",

"currency": "EUR",

"entitlement_id": null,

"entitlement_ids": [

"premium_access"

],

"environment": "PRODUCTION",

"event_timestamp_ms": 1742548667139,

"expiration_at_ms": 1774084650000,

"id": "FB3EAEB0-C46E-4E61-B034-D6FE6BD0A5F7",

"is_family_share": false,

"metadata": null,

"offer_code": null,

"original_app_user_id": "$RCAnonymousID:8791cc8bd2ee4b94a94d15a83f6903c9",

"original_transaction_id": "600001932728322",

"period_type": "NORMAL",

"presented_offering_id": null,

"price": 37.977,

"price_in_purchased_currency": 34.99,

"product_id": "foodai_yearly_standart",

"purchased_at_ms": 1742548650000,

"renewal_number": 1,

"store": "APP_STORE",

"subscriber_attributes": {},

"takehome_percentage": 0.85,

"tax_percentage": 0.1667,

"transaction_id": "--",

"type": "INITIAL_PURCHASE"

}

}


jeffrey_bunn
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 268 replies
  • March 24, 2025

Hi ​@hexadec. I see that you still have server purchase tracking enabled, which can create anonymous IDs if the server notification gets posted to our servers before the receipt gets posted from the device. If you only want to have custom app user IDs, please follow these instructions:

Hi ​@hexadec - To ensure you only use custom app user IDs, there are a few things you need to ensure:

  1. Never call configure without passing in a custom user ID
  2. Never call logOut. If you want to login a different user, just call login without first calling logOut
  3. Turn off server purchase tracking (AppleGoogle)

 

Regarding this comment:

when I turned off this feature , some purchases cannot be visible on revenuecat neither web hook works?

if I turn of this feature I cannot catch user made premium right? 

 

All purchases will be posted from your users’ devices to RevenueCat after making a purchase. You don’t need to have server purchase tracking enabled for purchases to work. You should have server notifications (iOS, Android) enabled, but this is different from server purchase tracking

Also, part of this issue stems from the fact that you’re only saving custom IDs in your backend, and unlocking entitlements there. You may want to also save anonymous IDs to your database in the case that anonymous IDs are created (either through server purchase tracking, or if you inadvertently call logOut or configure without a provided user ID). Doing so would make your system more flexible, though I understand it will likely change your schema. 

To sum up for now - please disable server purchase tracking. This should remove anonymous IDs in the meantime.


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