-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conditionally set progress bar color? #87
Comments
Actually, two blocks with different |
Why is it not guaranteed? |
I’m not sure, but that’s what the documentation says:
|
Right, that's because it is not required for a notification to have body text, only summary text, e.g.: I assume you're creating the notifications yourself, so the right way of handling this is probably to support supplying some extra data which you can then use with a
Unfortunately I don't think we can do much better than this. If we have options for specific use cases just under the Progress bar, then it balloons out exponentially. It would be nice if we could have some kind of conditional inclusions or something, but we're just not set up for that right now. Here's an issue that talks about some potential options: #81 |
I thought about
Yes, that would be a lot cleaner. |
I've added In
When sending the notification:
|
Thanks! |
Hi! My usecase is following: I want to display progress bar for volume and color it differently when volume is muted. Currently I could probably achieve this by creating two identical blocks with different
AppName
, but this is an unpleasant duplication.The text was updated successfully, but these errors were encountered: