Skip to main content

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!

Be the first to reply!