lingochamp / lingochamp/FileDownloader

Context.startForegroundService() did not then call Service.startForeground()

Open
#1,400 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
11.1k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

What problem do you get?
Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{ad3cfbc u0 /com.liulishuo.filedownloader.services.FileDownloadService$SharedMainProcessService}

Which version of FileDownloader are you using when you produce such problem?
1.7.7

How to reproduce such problem?
When OS >= Oreo and App is still in foreground

---
看到之前有issue提到这个问题,并且看源码已经解决,但是1.7.7上又遇到这个问题,不知道有没有人遇到同样

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the report on Android Oreo or newer with FileDownloader 1.7.7 while the app is foregrounded. Trace FileDownloadService$SharedMainProcessService and the foreground-service lifecycle; done means the reported Context.startForegroundService() error no longer occurs in that scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.