Is it possible to move a notification from heads-up to the status bar?

Background

Android Lollipop (API 21) introduced a way to display notifications outside the status bar (AKA notification bar) so that the user can immediately process them. It was called Heads-up Notifications .

The trigger for displaying them may vary between devices / roms / manufacturers.

Problem

Sometimes displaying such notifications can annoy users, and in most cases there are no settings for these cases.

If the user rejects the heads-up notifications, they will not be displayed as regular notifications. It is impossible to hide them and continue what is on the screen. You can only wait (and this is a rather long wait time).

In fact, there are several problems in the Google group that were open to him, simply because it can annoy people (link here and here ).

What i found

Starting with API 18, you can listen to notification events and even read them using NotificationListenerService "and" StatusBarNotification "and, possibly, other classes.

However, apart from rejecting notifications (other applications), I cannot find any other actions that can be done with them.

Question

Is it possible that during the life of my application, I can listen to notifications that appear as head-ups and return them as status notifications?

, -? , , ?

, , : , , ( ), -?

+4
1

, . , : " , ...?" , , , , / .

0

All Articles