如何在安卓系统上启用锁屏通知

huangapple go评论73阅读模式
英文:

How to enable notifications on lock screen on android

问题

我的应用运行良好,而且使用 FCM 也可以收到通知。但是,通知只会显示在状态栏,而不会显示在锁屏界面,也不会有 LED 指示灯闪烁。

我可以让这些功能工作,但是我必须在我的设备应用参数中启用锁屏通知、LED 等功能。

如何让我的应用默认情况下启用这些参数?我没有找到任何相关的权限可以做到这一点 如何在安卓系统上启用锁屏通知

最好的问候

英文:

My app work well, and notifications with FCM too. But, notifications only show in status bar, and not on lock screen and no led light is blinking.

I can do this working, but I have to enable lock screen notification, led, ... in my device application parameters.

How can my app have theses parameters enabled by default ? I did not found any permission to do that 如何在安卓系统上启用锁屏通知

Best regards

答案1

得分: 1

这可能取决于通知渠道的配置。在8.0及以上版本中,通道/通知的重要性设置为IMPORTANCE_MIN,在8.0以下版本中,优先级设置为PRIORITY_MIN。检查您的配置并增加重要性/优先级。

英文:

this may depend on Notification Channels configuration. On 8.0+ channel/notification has importance set to IMPORTANCE_MIN, below 8.0 has priority set to PRIORITY_MIN. Inspect your configuration and increase importance/priority

huangapple
  • 本文由 发表于 2020年8月20日 16:54:16
  • 转载请务必保留本文链接:https://go.coder-hub.com/63501597.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定