Hi
I am facing an issue with the configuration of appUserId
and API key while using the RevenueCat SDK for subscriptions. Currently, I am configuring appUserId
and API key multiple screens to ensure that the SDK receives the correct data at the time of subscribing.
I have integrated Sentry logs for the purchases.getCustomerInfo()
call and am logging this information within the onPurchaseStarted
event on the RevenueCat paywall. From the logs, I can confirm that the originalAppUserId
is being set correctly and as intended.
However, on the webhook, the app_user_id
appears as an anonymous user ID instead of the configured appUserId
. This discrepancy is breaking our subscription flow, leading to a poor user experience and dissatisfaction among our users.
Could you please help identify the root cause of this issue? Additionally, I would appreciate any suggestions or best practices for ensuring that the correct appUserId
is passed consistently through the webhook.
We make payments only for logged in users, not for the users who are not logged in, we are sure about this, because after sometime on revenue cat dashboard, the email was reflecting and showing an alias of appUserId with correct one and intended. This is not helpful at that time as the webhook is not having the right data.
This was happening only on ios till now. Looking forward to your guidance on resolving this matter.