Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: 安卓进入doze(深度睡眠)模式后 连接断开 #819

Open
zx3777 opened this issue Nov 27, 2024 · 4 comments
Open

BUG: 安卓进入doze(深度睡眠)模式后 连接断开 #819

zx3777 opened this issue Nov 27, 2024 · 4 comments

Comments

@zx3777
Copy link

zx3777 commented Nov 27, 2024

Describe the problem

1.3.2 安卓14

Expected behavior: 程序已加入doze白名单,关闭所有省电优化。利用fcm通知来测试。本来手机进入doze后,应该保持连接。像clash meta for Android 和 ficlash ,这两都能保持fcm不断。旧版nekobox 1.3.0虽然会断开,但是马上就会重连,之后会保持连接。

Actual behavior: 但是1.3.2,系统进入doze深度睡眠模式后,fcm立即断开,而且不会重连。但是程序还在运行,开屏后能自动重连。

How to reproduce

自然进入doze模式要不使用手机很长时间之后才行。建议手动进入。

拨号键 * # * # 426 #* # * 进入fcm菜单,先确认已连接上fcm。
电脑adb连接手机,用这种方法手动进入doze来测试:https://itmob.cn/archives/testing-with-doze-and-app-standby
变成idle状态后,等十几秒打开手机,拨号键 * # * # 426 #* # * 进入fcm菜单,右上角点击进入日志,可以看到连接状态历史,进入doze后马上断连,百分之百复现。

这是1.3.0的模式,断开后马上重连。
1732713306315

log

@Typhonling
Copy link

Typhonling commented Nov 28, 2024

同样的问题,已切换husi。

@xiaorong61
Copy link

xiaorong61 commented Nov 29, 2024

尝试开启系统设置的永久开启的 vpn

@zx3777
Copy link
Author

zx3777 commented Nov 29, 2024

尝试开启系统设置的永久开启的 vpn

跟这个应该没关系。其他软件不开也能保持连接。

@Galuis
Copy link

Galuis commented Dec 2, 2024

我之前也遇到了,目前停留在 1.2.9 版本,查了下还有个 Aquire WakeLock(Keep the CPU on) 的方法,我并没有尝试。

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

No branches or pull requests

4 participants