Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EventDiskCache not invoked when online #532

Open
ptrkaz opened this issue Aug 2, 2024 · 0 comments
Open

EventDiskCache not invoked when online #532

ptrkaz opened this issue Aug 2, 2024 · 0 comments

Comments

@ptrkaz
Copy link

ptrkaz commented Aug 2, 2024

There is a slight problem if user kills the app using task manager and then restarts it again, before the events were dispatched. Since the user was online all of the time, the events were not stored into the disk cache, rather just kept in-memory, so they are lost forever (or at least that's what I think happens)

A proposition of fixing that would to never go past the disk cache, always store events in the file, and always drain the disk cache when calling the dispatch() method.
This would prevent from loosing tracking data in the example I mentioned, but probably in other cases as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant