Leanplum / Leanplum-Android-SDK

Leanplum's integrated solution delivers meaningful engagement across messaging and the in-app experience.
https://www.leanplum.com
Apache License 2.0
46 stars 40 forks source link

Use same operation queue for Wrapper state transition and LP start #549

Closed hborisoff closed 1 year ago

hborisoff commented 1 year ago
What Where/Who
JIRA Issue SDK-2783
People Involved @hborisoff

Background

There were reports in RN of some setUserAttributes, invoked just after LP.start, not sent to CT when using the Wrapper. The issue turned out to be a race condition when initialising the wrapper and when issuing LP.start. Running the callbacks sequentially resolves the issue.

Testing steps

Tested with local publish of AAR and using same AAR in RN.