Open xa17d opened 3 years ago
I have the same issue and its posing a real challenge for us, because it breaks the consistency that we need. Hopefully this is fixed soon, for us it could also be a dealbreaker mid-term.
Hello. I'm looking into this and we'll try to ship a fix for this in the next release shortly.
try to ship a fix for this in the next release shortly.
Any update on this @ArtursKadikis ? Was it already fixed?
Thx.
Hello 🙌 ,
We've addressed the issue, and it is resolved in most cases. However, there are a few edge cases where the problem might still occur. We have already merged the fix, which will be included in the upcoming release.
Thank you for your patience. Please feel free to contact me if you have any questions or need further assistance.
We've addressed the issue, and it is resolved in most cases. However, there are a few edge cases where the problem might still occur. We have already merged the fix, which will be included in the upcoming release.
when can we expect the upcoming release?
Hello,
We apologize for the delayed response.
We wanted to let you know that this has been addressed in the 24.7.0 release of the Countly Android SDK. The details are in version 24.7.0.
Please feel free to update to the 24.7.0, and let us know if you encounter any further issues.
Thanks again for your patience and understanding!
Events recorded after
changeDeviceIdWithoutMerge
are still associated with the previous user.Code to reproduce:
The real application is much more complex and initialization is happening in
Application.onCreate
, but the issue is also reproducible with the code provided above.Expected Behavior
User with
deviceId == "dg-20210507-test1"
should have the events:User with
deviceId == "dg-20210507-test2"
should have the events:Current Behavior
User with
deviceId == "dg-20210507-test1"
receives all events:User with
deviceId == "dg-20210507-test2"
doesn't receive any events:Screenshots (if appropriate):
Screenshot of the current behavior from the user profile of user with
deviceId == "dg-20210507-test1"
:Possible Solution
No proposal. I saw that code that should make sure that events are not associated with the wrong
deviceId
is in place, but it doesn't seem to work in the provided scenario. Could be a race condition when events are tracked too fast after each other.Steps to Reproduce (for bugs)
CountlyIntegration.COUNTLY_APP_KEY
,CountlyIntegration.COUNTLY_SERVER_URL
,CountlyIntegration.COUNTLY_SALT
.More Description
Our app allows to switch users. We noticed that some events are associated with the wrong user. Especially those that are happening close to the
changeDeviceIdWithoutMerge
call. We tried to eliminate our own code as root cause and then tried to reproduce the issue with a minimal example. The result is the code provided in this issue.Your Environment
20.11.8