Skip to content

Conversation

@mbruin-NR
Copy link
Contributor

This PR introduces the NRMASessionManager class, which manages the mobile session lifecycle for the New Relic Agent. It enforces a 4-hour maximum session duration and a 30-minute background timeout.

Key Changes

  • Added NRMASessionManager as a singleton for session management.
  • Tracks session start, last activity, and background timestamps.
  • Implements logic for session expiration based on duration and background timeouts.
  • Provides utility for current time in milliseconds.
  • Includes debug logging for session events.

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.

2 participants