Skip to content

fix(analytics): pause the launch session when the client is created in the background - #3500

Merged
mattcreaser merged 2 commits into
mainfrom
fix/enrichment-background-launch
Oct 23, 2026
Merged

mattcreaser merged 2 commits into
mainfrom
fix/enrichment-background-launch

Conversation

@ekjotmultani

Copy link
Copy Markdown
Member

A client created while the app was not in the foreground (for example from a background start or a service) started its launch session as active, so the session never paused or timed out, and the first foreground joined it. The client now checks whether the process has a visible activity when it is created and, if not, pauses the launch session so it times out like any other backgrounded session. A foreground service on its own does not count as foreground, which matches how the lifecycle observer tracks started activities.

@ekjotmultani
ekjotmultani requested a review from a team as a code owner October 23, 2026 16:55
@codecov

codecov Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 80.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.81%. Comparing base (7cb8a6a) to head (990d3a8).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3500      +/-   ##
==========================================
+ Coverage   57.77%   57.81%   +0.03%     
==========================================
  Files        1129     1129              
  Lines       33268    33281      +13     
  Branches     4961     4965       +4     
==========================================
+ Hits        19222    19240      +18     
+ Misses      12117    12112       -5     
  Partials     1929     1929              
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mattcreaser
mattcreaser merged commit 81d7c86 into main Oct 23, 2026
21 checks passed
@mattcreaser
mattcreaser deleted the fix/enrichment-background-launch branch October 23, 2026 18:53
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