Skip to content

EventDiskCache not invoked when online #532

@ptrkaz

Description

@ptrkaz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions