lingochamp / lingochamp/FileDownloader
Caused by android.app.ForegroundServiceStartNotAllowedException Service.startForeground() not allowed due to mAllowStartForeground false:
- Dominant language
- Java
- Stars
- 11.1k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
Android 12.0 异常报错
Caused by android.app.ForegroundServiceStartNotAllowedException
Service.startForeground() not allowed due to mAllowStartForeground false:
解决参考:
https://developer.android.com/about/versions/12/foreground-services?hl=zh-cn&authuser=2
https://blog.csdn.net/zyy_give/article/details/131602476
请老铁更新一下,谢谢
Contributor guide
No contributing guide indexed for this repository
Research direction
Review the Android 12 foreground-service guidance linked in the issue and locate the service start path associated with the reported exception. Done means the app no longer triggers ForegroundServiceStartNotAllowedException on Android 12, with the relevant behavior verified on that platform.
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
- 25/100