Skip to content

Conversation

@MohitMaliFtechiz
Copy link
Collaborator

@MohitMaliFtechiz MohitMaliFtechiz commented Nov 17, 2025

Fixes #4495

  • Moved the start of DownloadMonitorService from the onStop lifecycle event to onPause, so the service begins slightly earlier—right before the app goes into the background.
  • Updated DownloadMonitorService to start the foreground service immediately, before performing any work or checking the download status. Previously, while the service was checking download status, the app could transition to the background, causing the service to fail to start. Now, the service starts first and performs all checks afterward, ensuring it always launches successfully. If no downloads are active, the service stops itself afterward.

* Moved the start of `DownloadMonitorService` from the `onStop` lifecycle event to `onPause`, so the service begins slightly earlier—right before the app goes into the background.
* Updated `DownloadMonitorService` to start the foreground service immediately, before performing any work or checking the download status. Previously, while the service was checking download status, the app could transition to the background, causing the service to fail to start. Now, the service starts first and performs all checks afterward, ensuring it always launches successfully. If no downloads are active, the service stops itself afterward.
@codecov
Copy link

codecov bot commented Nov 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.96%. Comparing base (987aebf) to head (bbaaee2).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #4496      +/-   ##
============================================
+ Coverage     58.87%   58.96%   +0.08%     
- Complexity     1488     1492       +4     
============================================
  Files           320      320              
  Lines         17081    17084       +3     
  Branches       2128     2128              
============================================
+ Hits          10057    10073      +16     
+ Misses         5627     5611      -16     
- Partials       1397     1400       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@kelson42 kelson42 merged commit 51e8ea8 into main Nov 17, 2025
35 checks passed
@kelson42 kelson42 deleted the Fixes#4495 branch November 17, 2025 10:45
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.

Play Store reported a crash for our DownloadMonitorService.

4 participants