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

Update the Event Flushing Mechanism to save in disk #10

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

CoderGamester
Copy link
Contributor

@CoderGamester CoderGamester commented Feb 8, 2025

Update the Event Flushing Mechanism to avoid losing events due to network issues or game being closed

  • Add the option to save events to disk if they failed to be sent when the game loses focus on the device screen.
  • Disable sending events if application is offline
  • Added Task return to allow methods to await for event flushing to be done. This is useful in the case events fail and are needed to save localy

Reasoning

  • I noticed that the SDK doesn't have "offline" or "lose connection" mode this means that failed events would never be sent if the device lose connection at the end of the session or the player plays the entire session offline
  • This is not optimal for mobile games or low stable network devices

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

Successfully merging this pull request may close these issues.

1 participant