Hide MacroDroid icon in statusbar without affecting Notification Bar?

chaoscreater

Active member
I'm running a GSI custom ROM on my phone and I've discovered an issue that I haven't encountered back when I was on stock ROM. The issue is that MacroDroid is showing an icon in my statusbar and this is because the persistent notification category for MacroDroid is enabled. If I disable this persistent notification, the icon goes away, but it also removes the MacroDroid Notification Bar and I want to keep that. I have granted MacroDroid the "Notification Access" permission in Android and followed this guide and also the "help" guide within Notification Bar menu in MacroDroid.

 

MacroDroidDev

Administrator
Staff member
MacroDroid runs as a persistent foreground service therefore must show an icon in the notification bar. If you hide the persistent notification channel then this will hide the notification bar.

The behaviour may have been different with older versions of Android but this is standard in recent Android versions. So you either accept the icon and have the MacroDroid notification bar, or you hide the icon and lose the bar I'm afraid.
 

chaoscreater

Active member
MacroDroid runs as a persistent foreground service therefore must show an icon in the notification bar. If you hide the persistent notification channel then this will hide the notification bar.

The behaviour may have been different with older versions of Android but this is standard in recent Android versions. So you either accept the icon and have the MacroDroid notification bar, or you hide the icon and lose the bar I'm afraid.

I understand that and that's what I figured as well. The weird thing is, I didn't have this issue when I was still using stock MIUI and stock Samsung (both on Android 11). The only difference is that I am now using either a GSI or custom ROM. I'm still running Android 11.

It's not a major issue or anything, just that I'd rather see one less icon on the status bar, as it is already running out of space. Some phones have notches in the middle and you get even less space on the status bar (unless you hide the notch via Android setting, but that's not the point).
 

dsnz

Well-known member
I have removed the status icon

just set the option "minimize notifications" for the persistent notification (certainly don't ever disable the persistent notification)
(in some Androids there is a priority and you have to set it to the lowest one)
the button bar will keep appearing in the notification drawer
 

chaoscreater

Active member
I have removed the status icon

just set the option "minimize notifications" for the persistent notification (certainly don't ever disable the persistent notification)
(in some Androids there is a priority and you have to set it to the lowest one)
the button bar will keep appearing in the notification drawer

Yes, I know what you're talking about and unfortunately I don't have a priority option in my Android notification settings. I also went into MacroDroid -> Notification Bar Opotions -> Notification Priority and set it to Mnimum and Low. Both don't make any changes unfortunately and I've restarted MacroDroid as well.
 

dsnz

Well-known member
have you tried ?

- slide the notification in the drawer a bit to the left exposing a gear
- click the gear
- click Settings
- click "Persistent Notification"
- click and enable "Minimize notifications"
 

chaoscreater

Active member
Tried it just now and I don't see any setting for Minimize Notifications unfortunately. It just shows me the same setting from the full Android notification settings. I'm using AOSP custom ROM btw, so it's pretty much as stock Android as I can get. I do remember seeing this in stock OEM roms though.
 

AhmedZ

New member
SystemUI Tuner has options to be able to hide status bar icons but I don't know what the "key" is for the MacroDroid persistent notification icon.
I don't want to minimize it (so I can easily click the action buttons without having to expand it) but do want to hide the status bar icon.
Has anyone figured that out?
 

420

Active member
SystemUI Tuner has options to be able to hide status bar icons but I don't know what the "key" is for the MacroDroid persistent notification icon.
I don't want to minimize it (so I can easily click the action buttons without having to expand it) but do want to hide the status bar icon.
Has anyone figured that out?
I don't think MD has it's own "key", or maybe we have different versions of System UI Tuner.. My version has an option at the bottom to enable/disable icons for notifications with low priority, i would assume turning those off combined with setting MD to low priority would remove the icon. Not sure if setting MD to low priority moves the notification/button bar to the bottom though, if so i don't think it's worth it.

Maybe it's an idea to start making it useful instead? You can change the icon depending on whatever you want, mine for example is different depending on whether my MD "at-home" variable is true or not.
 

AhmedZ

New member
Maybe it's an idea to start making it useful instead?
Haha good call. I'll chew on that.

I'm an Android developer but I feel like this should be an option in Macrodroid as I've seen a similar option in other apps to disable the status icon (but keep the notification).
 

Miacharlotte

New member
MacroDroid runs as a persistent foreground service therefore must show an icon in the notification bar. If you hide the persistent notification ...
On Android 8 and above you can hide the persistent notification by long pressing the notification and switching the persistent notification ...
category off. On some devices this could lead to an alternativen clickcounter.info warning notification that MacroDroid is running in the background.Once you're in the app settings, you'll notice the “Notifications” submenu. Open it. There you'll see a ton of notification options on a system level. You can basically choose to minimize status bar notifications for one particular type of notification.
 

AhmedZ

New member
MacroDroid runs as a persistent foreground service therefore must show an icon in the notification bar. If you hide the persistent notification ...
On Android 8 and above you can hide the persistent notification by long pressing the notification and switching the persistent notification ...
category off. On some devices this could lead to an alternativen clickcounter.info warning notification that MacroDroid is running in the background.Once you're in the app settings, you'll notice the “Notifications” submenu. Open it. There you'll see a ton of notification options on a system level. You can basically choose to minimize status bar notifications for one particular type of notification.
Yep, that is all correct and already known. The problem is I want to hide the status bar icon, "minimize" in the system settings--but not minimize the notification (so I can access my shortcuts easily).
I don't want to minimize it (so I can easily click the action buttons without having to expand it) but do want to hide the status bar icon.

Anyway, it's an android limitation for now... 420's solution to make lemonade is good enough. I've been using it to make the icon change when in different contexts.
 
Top