Skip to main content
Question

Apple Redeem Code feature sending Anonymous ID instead of the real userId using react-native


Forum|alt.badge.img

Hello community,

I hope that everyone is doing really great.

So, I am reaching out for a very severe blocker, having for last couple of days about the Apple (iOS) Redeem Code functionality.

 

My app has the following flow:

  • User signup with either Google / Apple or Email.
  • At this point, we have the user email and I have used Purchases.configure({ app_user_id: ‘’ }). I have also verified through Purchases.getUserAppId() and seems like I have the correct userId.
  • Next screen after signup is a paywall and user can Redeem Code from here as well.
  • I am using the RC’s suggested way (to redirect the User to App Store via URL instead of displaying Apple Sheet).
  • User gets redirected and when user Redeems the offer there, App store asks the user to `Open App` and when user do so, I have the watcher for that and I call `Purchases.logIn(userId)` and `Purchases.syncPurchase()` the problem is that my Webhook is always getting `Anonymmous Id` despite of me having set the correct app_user_id.
  • My backend is heavily relying on the `app_user_id`.
  • Furthermore, I have also `Purchases.setAttributes({ email, offerCode })` and seems like they are also setting up in the RC but the only missing part is that I am not getting all of these information in the webhook.

Any help would be highly appreciated.

Thanks in advance!

This post has been closed for comments

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