braze-inc / braze-react-native-sdk

Public repo for the Braze React Native SDK
https://www.braze.com
Other
64 stars 84 forks source link

[Bug]: Custom attributes only reflecting 15 seconds later #262

Closed Solly74 closed 4 months ago

Solly74 commented 4 months ago

Which Platforms?

Both

Which React Native Version?

73.4

Which @braze/react-native-sdk SDK version?

11.0.0

Repro Rate

80%

Steps To Reproduce

  1. Update a custom attribute using Braze.setCustomUserAttribute
  2. Request immediate flush using Braze.requestImmediateDataFlush

Expected Behavior

Using an immediate flush I would expect to see the changes in under 5 seconds on the dashboard.

Actual Incorrect Behavior

It can take sometimes more than 15 seconds for the changes to reflect on the dashboard. Is there a minimum amount of time we should wait before querying the user's attributes?

Verbose Logs

No response

Additional Information

Sometimes the changes don't reflect at all but that's not very reproducible.

jerielng commented 4 months ago

Hi @Solly74, we cannot offer any guarantees to how quickly the dashboard should reflect flushed data from the SDK. Since this involves updating the platform database via a client -> server API request, the processing time can vary depending on many different conditions (device's network conditions, how heavy current server processing loads are, etc.).

There isn't necessarily a minimum amount of time, but I would say the variance in time is expected behavior. We would not recommend depending important follow-up actions on the data being available within an order of seconds.

However, if you are seeing cases where the data never shows up on the dashboard, that would indeed be an issue. I'll close out this issue, but if you have further questions or requests for recommendations, feel free to reach out to our support team at support@braze.com. Thanks!