-
-
Notifications
You must be signed in to change notification settings - Fork 1
Notify on mention #3
Comments
Looks like there are two ways: It seems like Growl does more of what I want, but it might be valuable to let the user decide in some kind of menu option. |
There's another app that seems to observe title changes to catch events. |
@jwheare is one the case! |
We're now calling macgap.notice.notify whenever we'd open a web notification. |
Awesome. I'll check it out. |
What I'm noticing is that, when someone privmsgs me, I don't get a notification. I don't recall hearing a sound, either. When I click on the channel/nick that has mentions/messages, the chat pane goes away and clicking on any of the channels does nothing. Other links work, as does expanding the archive, though. Only way to get anything back is to restart the app. |
Presumably there's a way to see the javascript console and error log? |
Yeah… I need to turn on MacGap’s debug. |
|
In the console:
|
So poking around at the Javascript, I think I found the issue, and it's in the dock badge (#4):
I think it doesn't like that the badge is getting set to an empty string. |
Nope, good theory, but wrong. Just tried this in a new MacGap project:
and it worked as it should. |
found it.
badge likes numbers as strings, not integers. |
Is it supposed to be set to 0 then? On 29 Jun 2014, at 18:30, Colin Dean [email protected] wrote: So poking around at the Javascript, I think I found the issue, and it's in window.macgap.dock.badge = s || "" I think it doesn't like that the badge is getting set to an empty string. — |
Ah ok sorry, replied before reading the full thread. I'll cast it to a On 29 Jun 2014, at 18:35, Colin Dean [email protected] wrote: found it. badge likes numbers as strings, not integers. — |
Scratch that. I created my own copy of the I think once you get the badge issue fixed, then I can make sure that things work. |
Done, it should be live within an hour. |
So I can see the js that should be activating it, and I've had people both mention and privmsg me, but I'm still not getting any notifications. I've double checked Growl, and I can see that the app has registered itself with Growl. However, nothing is showing in the history. Under what conditions should the notification appear? I do see the badge, and I would assume that the notification would appear whenever there is an event that would increment the badge count. |
Found the issue. MacGap exposes the window.webkitNotifications and window.Notification apis but does nothing with them, so the macgap.notice calls were never being reached. MacGap really should just be using those interfaces so that no extra code is required, but for now I've added the macgap.notice.notify call further up (native notifications do work after all). Annoyingly, MacGap doesn't let you bind an onclick event, so we can't select the right channel for a notification. I don't know if this is improved in newer versions. Change should be live in about 15 minutes. |
Awesome. I'll check out out in a little bit. |
OK, it appears to be working after refreshing the page multiple times. The big difference between macgap.growl and macgap.notice, or really, between Growl and Notification Center, is the Growl will show notifications even if the app is in the foreground. Notification Center won't. I cleared about 200 "testing" from my Notification Center after figuring this out 👅 Thank you so very much for implementing this, @jwheare! 🍻 |
No idea how to do this, but it's a blocker for day-to-day usage of this app.
The text was updated successfully, but these errors were encountered: