This repository has been archived by the owner on Nov 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Session Handling
Martin Treacy-Schwartz edited this page Mar 15, 2017
·
3 revisions
Sessions are the concept of a user spending focused time in your game - from game launch to the user leaving the game.
On UWP a new session will start once the game is launched (or when the app is "resuming"). A session will end once the game is suspended.
On Windows and Mac gameanalytics::GameAnalytics.onStop()
should be called manually before quiting the game to create an end session event.
- Generate new session.
- Add a session start event (a "user" event).
- Start the periodic activation of submitting queued events.
- Next event submit will fix potential missing session_end from earlier sessions.
- Stop the periodic activation of submitting queued events.
- Add a session_end event.
- Submit queued events.