-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[OSX] way to *completely* disable bouncing dock icon #1762
Comments
I'm happy to implement this, but want to run my approach by the core maintainers first. I am considering two approaches for resolving this issue:
|
I will note that a change has already been made in beta builds on this front. The location of the You can find the beta mac install here: Though perhaps this is truly different. You'd like to see the banner notifications, but you don't want any dock bouncing. Is that correct? |
@scottnonnenberg Personally I just want to disable notifications entirely. #1612 resolves this issue satisfactorily for me. |
For my personal preferences, yes. I think my internal reasoning here is:
but that's just what goes in in my head when thinking about notifications. |
Is there progress being made on this? I'd be happy to implement a solution as well to remove the bouncing dock icon or give the user on the Mac the option to remove the icon. It bothers me and I have the time to fix it. |
@phillipamann It's not in-progress now, no. What do you have in mind to implement, exactly? |
Hello @scottnonnenberg, sorry for my delay in replying. First it was the holidays and then I got sick. Anyways, hi. I spent a bit of time exploring the code. I am not a JS developer so all of this is new to me. I noticed this line in main.js. I see this block of code specifically:
In notifications.js, on line 56, you call |
Part of the thinking here is that dock-bouncing is a setting totally unique to Mac. But this is a cross-platform app. What can we do to introduce a setting which makes sense for everyone? Is that possible? A binary yes/no for notifications, then doing the right thing for the OS is far easier. |
Haha, I need to turn on notifications for this site. Anyways, what happens when window.drawAttention() is called on Windows and Linux, respectively? If nothing happens in either platform, then perhaps move this specifically into the notification calls rather than existing before the notification calls? |
This is all the happens when
|
OK, I have to be honest. I have since disabled notifications for this app completely so this doesn't even help me anymore but why not contribute? I read the documentation for flashFrame (https://github.com/electron/electron/blob/master/docs/tutorial/desktop-environment-integration.md). This is claimed to not work on Linux but I don't run a Linux graphical shell / desktop environment when I use Linux. Here is what I finally propose:
Please tell me what you think. I think this is a good solution that allows flexibility to the user and is simple to add. |
Also, I turned on email notifications so I'll reply within 24 hours from now on 😉. |
@phillipamann I think that's a worthwhile checkbox. Go ahead and submit that PR. Just remember that variables can't have dashes in them! :0) |
OK great. Thanks! One last question. Is there any thing I need to include in this with regards to testing? I have never worked on Electron before or are my two code suggestions enough? I'll test locally on my Mac. |
Nothing in particular, especially something that isn't algorithmic. That's more data pipelining, and we just need to make sure that everything is connected together properly. No guarantees that I won't come up with additional feedback or advice when I see your code! |
OK. I’ll submit my PR first and we can go from there. Thanks! |
OK, I have finished all of the code, all tests pass, the checkbox is added, and I have set up two numbers on staging. However, I am a bit stuck with what I should do now. I have created two profiles for testing on my local machine. I just can't modify the contact list of either so I can send a message from one test account to the other test account to verify the dock bounce behavior is working. I'll keep working on this and if I am able to resolve, I'll comment here. I am close! |
@phillipamann You can send messages to any arbitrary Signal user using the search box in the top left. Just enter the phone number, then 'Click to add contact' or 'Start conversation' (depending on what branch/version you're using). |
Hello @scottnonnenberg, I have opened a PR: #2102. Thanks for your help and patience. |
Bug description
The Dock icon of Signal bounces and breaks my focus while working
Steps to reproduce
Actual result: There is no control to completely disable bouncing.
Expected result: There would be a checkbox saying "enable bouncing Dock icon" from which I can remove the check which is set by default, thereby removing the bounciness :)
Platform info
Operating System: macOS 10.13.1
Signal version: Signal Desktop/Electron 1.0.37
The text was updated successfully, but these errors were encountered: