Heads up notification do not work sometimes

后端 未结 2 1046
野性不改
野性不改 2021-01-07 07:08

I make a head up notification this way:

Notification.Builder nb = new Notification.Builder(context)
        .setSmallIcon(icon)
        .setContentTitle(\"Ti         


        
2条回答
  •  自闭症患者
    2021-01-07 07:46

    Heads up notifications have a built in rate limiting - if the user swipes your heads up notification up (putting it back into the notification tray) or to the side (dismissing it), then that signals the system to prevent further heads up notifications for some period of time (~a minute by default).

提交回复
热议问题