Skip to main content
Question

Can we access `appAccountToken` via `CustomerInfo`?

  • January 5, 2025
  • 1 reply
  • 107 views

Forum|alt.badge.img+2

Hi team,

Is there a way for us to get access to the underlying `appAccountToken` of a transaction?

It looks like the SDK always adds it when a StoreKit2 product is purchased, but so far it seems the id is only available in the Purchase method callback, specifically as part of the StoreKit2 transaction itself.

it would save us a significant amount of work if `appAccountToken` was available in `CustomerInfo` (in our specific case, for `NonSubscriptionTransactions` if it makes any difference).

Thanks in advance!

This post has been closed for comments

1 reply

jeffrey_bunn
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 300 replies
  • January 8, 2025

Hi ​@joey_! While this isn’t exposed at the moment, you can get this by setting up RevenueCat to forward Apple notifications to your server. We set the appAccountToken to the identified app user ID when purchasing, but importantly, Apple only accepts this value if the app user ID is a valid UUID (RFC 4122 version 4). Upon catching the server notification, you can forward it to customer.io on your end.

All this said, if you want to share more about your use case, I’d be happy to see if there’s a simpler way for your to achieve your goals. Thanks!


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