-
Notifications
You must be signed in to change notification settings - Fork 61
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
Small tracking notification improvements #3411
base: master
Are you sure you want to change the base?
Conversation
I would like to see Stop shortcut beside it. So, users can stop tracking without going to app, find the action button and stop it there. |
Minor revision - I wanted to use our "grass" green color for the icon's background... in the end Android uses different tint of green (probably it has some sort of limited palette in its style) but I think it's better than the blue background it was giving me (this is Samsung S21 - it may looks differently on stock Android) |
Yeah me too... let's go one step at a time 😉 |
.setSmallIcon( R.drawable.ic_notification ) | ||
.setContentTitle( "Tracking in progress" ) | ||
.setColor( getResources().getColor( R.color.grassColor ) ) | ||
.setForegroundServiceBehavior( Notification.FOREGROUND_SERVICE_IMMEDIATE ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like setForegroundServiceBehavior() is Android >= 12 only, will need to make that optional
For logo - if it is stricly single color use this variant https://drive.google.com/file/d/170oszgU06SG8XD0bEKuH-W2WZMYWvUIC/view?usp=share_link |
Good point! Let me know @wonder-sk if you need to export it |
For discussion:
Icon in the system bar:
Notification when the system menu is open:
Notification when it gets expanded:
When the app is open - the notification icon is still there: