Skip to content

Change the kernel to background tasks on HarmonyOS Next #14131

Closed
@5kyfkr

Description

@5kyfkr

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

Activity

88250

88250 commented on Feb 18, 2025

@88250
Member
5kyfkr

5kyfkr commented on Feb 18, 2025

@5kyfkr
Author

不息屏,只切换应用等 30 秒再切回来会闪退吗?

经过我测试,是等15秒以上后台会被杀掉,看来和是否锁屏无关,锁屏后马上解锁也不会退出

88250

88250 commented on Feb 18, 2025

@88250
Member

麻烦帮忙录屏演示下不息屏的表现,多谢。

5kyfkr

5kyfkr commented on Feb 18, 2025

@5kyfkr
Author
SVID_20250218_121913_1.mp4

15秒以上能稳定复现,10秒有概率复现

L1cardo

L1cardo commented on Feb 18, 2025

@L1cardo

我也遇到了同样的问题

88250

88250 commented on Feb 18, 2025

@88250
Member

@5kyfkr 收到,谢谢

self-assigned this
on Feb 18, 2025
88250

88250 commented on Feb 19, 2025

@88250
Member

下个版本尝试将内核改为长时任务运行,也许能解决这个问题。

changed the title [-]HarmonyOS Next版本后台锁屏后进程无法留存[/-] [+]Change the kernel to background tasks on HarmonyOS Next[/+] on Feb 19, 2025
added this to the 3.1.24 milestone on Feb 19, 2025
modified the milestones: 3.1.24, 3.1.23 on Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@L1cardo@5kyfkr

      Issue actions

        Change the kernel to background tasks on HarmonyOS Next · Issue #14131 · siyuan-note/siyuan