Skip to main content
Solved

Email attribute not sent (Android SDK)

  • 25 July 2024
  • 2 replies
  • 25 views

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?

This post has been closed for comments

2 replies

Userlevel 4
Badge +8

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

Userlevel 1
Badge +1

Thanks, opened a support ticket.