Android: Feature request: Persistent notifications

Created on 13 Feb 2020  路  9Comments  路  Source: home-assistant/android

I currently have a persistent notification getting updated frequently with important data. I have created this using Tasker, Join and Autonotifications.

I am using the new tag and sticky options in a Companion notification, which are working fine, but I'd like the notification to be persistent, and not be able to be swiped away.

Would it be possible to add this feature? It would definitely simplify my setup, requiring 3 less apps in my system.

Thanks!

enhancement notifications

Most helpful comment

Just want to add that a persistent notification would also be really useful for doing something like displaying volume controls while the TV is on. I tried doing this with sticky but when I tap an action (ie volume up), the notification goes away. My work around right now is immediately send the notification again but that's rather wonky.

All 9 comments

No

Actually just kidding, it's already implemented :) Standby for example code.

This will make the notification permanent.

message: 'Would you like to unlock the door?'
title: 'Welcome Home'
data:
    sticky: true

Wow, that's fantastic! Best app and best devs. Btw, you almost had me going with the first reply 馃槀

Sticky != Persistent
Sticky only ensures that once you have clicked on the notification it doesn't go away. Persistent means that you can't swipe it away and instead would need to call notify with clear_notification and the tag to dismiss. I think this is still a valid feature request.

Ah! Way to show the Android noob (me) a thing or two. Apologies for misleading you @stipe76!

Just want to add that a persistent notification would also be really useful for doing something like displaying volume controls while the TV is on. I tried doing this with sticky but when I tap an action (ie volume up), the notification goes away. My work around right now is immediately send the notification again but that's rather wonky.

Any update on this? Will we be able to get this implemented? Thanks

I want this feature. My use case is that i have actions that trigger automation that closes the notification when background task i done. If no action is taken it should remain in the notification list. This is called ongoing event in android sdk.
https://developer.android.com/reference/android/app/Notification#FLAG_ONGOING_EVENT
https://developer.android.com/reference/android/app/Notification#FLAG_NO_CLEAR

Was this page helpful?
0 / 5 - 0 ratings