Skip to content
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

Add desktop notifications support on Windows 7 #16

Closed
alkuzad opened this issue Jul 19, 2016 · 19 comments
Closed

Add desktop notifications support on Windows 7 #16

alkuzad opened this issue Jul 19, 2016 · 19 comments

Comments

@alkuzad
Copy link

alkuzad commented Jul 19, 2016

According to electron documentation Notification api does not work on Windows7, it has to use Tray baloon api.

Is it possible to implement baloon notifications ? It would most propably require work also on standard website.

@akashnimare
Copy link
Member

@alkuzad As of now only native notifications works in our app. I think we could implement balloon notifications for Windows7.

@akashnimare
Copy link
Member

@alkuzad we could use node-notifier.

@alkuzad
Copy link
Author

alkuzad commented Aug 5, 2016

@akashnimare but as current code relies on the web code it is not doable right ? The web code should then use wrapper over Notification create to send event so electron can catch it.

@akashnimare
Copy link
Member

If native notifications works on win7 then we could easily wrap it around electron.

@mgrabow1
Copy link

Windows 8.1 - also no desktop notifications for new messages. Only audible.

@akashnimare
Copy link
Member

Here are the few things we need to work on -

  • Make the native notifications clickable on linux + windows
  • Add windows 7 + 8 support

@mgrabow1
Copy link

mgrabow1 commented Feb 14, 2017

I'm waiting and waiting... ;)
I've just made a major upgrade to 1.5.1 and sadly some features (like administration, settings and stream settings) don't work in native Windows client (also message textarea became very small).
I regularly check the electron version, but lack of desktop notofication (on W7 and W8 - most computers in our organization) is really a major drawback :/

@timabbott
Copy link
Member

Yeah that seems pretty poor; @akashnimare how hard would it be to make this work on W7/W8?

@akashnimare
Copy link
Member

akashnimare commented Feb 15, 2017

@timabbott it's a bit hard since Electron does not support desktop notifications on windows 7. I guess we have to wait until they fix this issue. @mgrabow1 @alkuzad you can also track it here -
electron/electron#262
electron/electron#8384

I regularly check the electron version, but lack of desktop notifications (on W7 and W8 - most computers in our organization) is really a major drawback :/

@mgrabow1 sorry for not working on this feature. Our primary focus is to make a stable windows app first with some basic features (spellchecker, auto-updates, signed app etc) and then implement desktop notifications(W7/W8), multiple login server etc. Now that we have a stable release v0.5.8, we could look into this feature.

I don't think electron will fix this issue in near future so we gotta implement this on our own. node-notifier, electron-toaster and electron-notify are few possible alternatives which we could use.

@timabbott
Copy link
Member

Yeah, I agree that it's unlikely Electron will fix this soon. As a stopgap if those libraries are hard to setup, we could at least make sure the browser-style web notifications work on those platforms.

@mgrabow1
Copy link

Thanks for your replies. Some people in my organization (including myself) started using web-based client (for now), but some sceptics are hard to convince that our great IM-replacement doesn't notfiy about new messages ;)
A follow up question - is this notification thing also connected to not changing zulip-electron tray icon after receiving messages? The native client's icon "blinks" with the number of unread messages. Will zulip-electron do that after resolving this issue? (IMHO it would be enough for some time - to me it's more important to know that anone wrote anything than to get rich notifications :)

@alkuzad
Copy link
Author

alkuzad commented Feb 16, 2017

@akashnimare made comment here: electron/electron#262 (comment)

@akashnimare
Copy link
Member

@alkuzad cool. I think electron-toaster + electron-notification-shim could resolve this issue.
Last time I checked electron-notification-shim, it used to create double notifications. I'll have to figure out how to delete the native notifications first and then implement notifications using this module 😅

We switched to Rocket.Chat

Just curious, any particular reason for switching?

@alkuzad
Copy link
Author

alkuzad commented Feb 17, 2017

@akashnimare I personally like zulip more as it has a lot cleaner interface, more compact which is better for bigger companies. But RC is easy to setup with ready docker containers where Zulip warns everywhere that stepping outside Vagrant (which is dead cause real working VM managers costs lots of money and docker works on every modern linux for free) will be painful.

Stepping outside Ubuntu is painful too (i.e Centos instructions doesn't mention installing redis first, when Ubuntu ones does).

So this is why we have one blessed config that goes around teams that "just works", no one managed to install Zulip without it.

Also being able to just ctrl+c, ctrl+v screenshot is a big deal, with zulip I had to go via disk always.

@akashnimare
Copy link
Member

@alkuzad thanks, we'll take a note on this. cc @timabbott @showell

@akashnimare
Copy link
Member

is this notification thing also connected to not changing zulip-electron tray icon after receiving messages?

@mgrabow1 could you please open a new issue for this? Unread counts support is added in OSX only.

image

As of now, Electron does not support it but I think there might be other ways to achieve the same.

@mgrabow1
Copy link

@akashnimare sure, no problem.

Reported as #110

@akashnimare akashnimare changed the title Notifications does not work on windows 7 Add desktop notifications support on Windows 7 Apr 3, 2017
@akashnimare
Copy link
Member

Windows 7 notification will be implemented once this PR gets merged

electron-archive/brightray#279 🙇

@akashnimare
Copy link
Member

windows 7

Windows 7 desktop notification support has been added and will be pushed in next release. Thanks, @alkuzad, @mgrabow1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants