Skip to main content
Solved

Email attribute not sent (Android SDK)


Matt Robertson
Forum|alt.badge.img+1

We are occasionally seeing cases where a user is able to start a subscription but their email is not associated with the user in the RC dashboard. 

 

Our code pretty straightforwardly should not allow this. The below snippet is the only place where we call `Purchases.configure()` and we immediately set the email attribute.

fun initializeRevenueCat(user: User) {

    if (user.email.isEmpty()) {
        return
    }

    val config = PurchasesConfiguration.Builder(...).build()

    Purchases.configure(config).also {
        it.setEmail(user.email)
    }
}

Is this a bug in the RC Android SDK or are we missing something in usage?

Best answer by Haley Pace

Hi, attributes will only get synced when a purchase is made, or when the app is backgrounded/relaunched. In your case here the $email attribute should be set and synced properly. Could you please open a support ticket here with an example app user id so we can check our server logs to see if anything is amiss when you try to set this value? https://app.revenuecat.com/settings/support

Additionally, are you able to reproduce this in sandbox? If so we’d like full debug logs for this, see our docs here: https://www.revenuecat.com/docs/test-and-launch/debugging#section-debugging

View original
Did this post help you find an answer to your question?
This post has been closed for comments

2 replies

Forum|alt.badge.img+8
  • RevenueCat Staff
  • 435 replies
  • Answer
  • July 29, 2024

Hi, attributes will only get synced when a purchase is made, or when the app is backgrounded/relaunched. In your case here the $email attribute should be set and synced properly. Could you please open a support ticket here with an example app user id so we can check our server logs to see if anything is amiss when you try to set this value? https://app.revenuecat.com/settings/support

Additionally, are you able to reproduce this in sandbox? If so we’d like full debug logs for this, see our docs here: https://www.revenuecat.com/docs/test-and-launch/debugging#section-debugging


Matt Robertson
Forum|alt.badge.img+1

Thanks, opened a support ticket.


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