推送通知到达时,kotlin上的屏幕照明
关闭应用程序并关闭电话屏幕时,手机会收到推送通知。目前,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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,您无法控制现代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