Closed
Description
HarmonyOS Next版本后台锁屏后进程无法留存
Is there an existing issue for this?
- I have searched the existing issues
Can the issue be reproduced with the default theme (daylight/midnight)?
- I was able to reproduce the issue with the default theme
Could the issue be due to extensions?
- I've ruled out the possibility that the extension is causing the problem.
Describe the problem
如题目前鸿蒙Next上面只要在退出前台,然后锁屏,再亮屏后app就直接被系统杀了,即使在5.0.0.126版本中多了应用后台锁定功能也一样被杀进程,感觉不合理,希望优化
Expected result
能保持后台起码半小时内不被杀
Screenshot or screen recording presentation
No response
Version environment
- Version: 3.1.20
- Operating System: HarmonyOS Next 5.0.0.126
- Browser (if used):
Log file
无法获取日志
More information
No response
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
88250 commentedon Feb 18, 2025
5kyfkr commentedon Feb 18, 2025
经过我测试,是等15秒以上后台会被杀掉,看来和是否锁屏无关,锁屏后马上解锁也不会退出
88250 commentedon Feb 18, 2025
麻烦帮忙录屏演示下不息屏的表现,多谢。
5kyfkr commentedon Feb 18, 2025
SVID_20250218_121913_1.mp4
15秒以上能稳定复现,10秒有概率复现
L1cardo commentedon Feb 18, 2025
我也遇到了同样的问题
88250 commentedon Feb 18, 2025
@5kyfkr 收到,谢谢
88250 commentedon Feb 19, 2025
下个版本尝试将内核改为长时任务运行,也许能解决这个问题。
[-]HarmonyOS Next版本后台锁屏后进程无法留存[/-][+]Change the kernel to background tasks on HarmonyOS Next[/+]🎨 Change the kernel to background tasks on HarmonyOS Next siyuan-note…
🎨 Change the kernel to background tasks on HarmonyOS Next siyuan-note…