I have a notification that contains an action like this:
The action is always shown, I'd like to hide it by default so the user has to press the button at the top right to show the action so that the notification occupies less space.
I've read about using a low notification priority by calling setPriority
on the NotificationCompat.Builder
before posting the ongoing notification from my foreground service, but this doesn't seem to work. I'm using Android SDK version 28.