推送通知到达时,kotlin上的屏幕照明

发布于 2025-01-30 16:14:57 字数 101 浏览 4 评论 0原文

关闭应用程序并关闭电话屏幕时,手机会收到推送通知。目前,Android手机可以收到推送通知,但不会打开屏幕。

当应用程序的推送通知输入时,请告诉我如何打开关闭电话屏幕的屏幕。

When the application is closed, and the phone screen is off, the phone receives push notifications. At this time, Android phones can receive push notifications, but they don’t turn the screen on.

Please tell me how to turn the screen on of a turned off phone screen when push notifications from the application come in.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

划一舟意中人 2025-02-06 16:14:57

据我所知,您无法控制现代Android。
由单个用户来设置系统设置,以允许推送通知打开屏幕。

作为Android 11中的一个例子,设置不在
锁定屏幕 - >通知的唤醒锁屏幕

You can not control that as far as I know in modern Android.
It's up to the individual user to set up the system setting to allow push notifications to turn on the screen.

As an example in Android 11 the setting is under
Lock Screen -> Wake Lock screen for notifications

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文