Is there a way, or can it be added, to be able to set the unread count badge through the custom JS?
I have added https://asana.com/ and https://www.pivotaltracker.com through the 'add any website' function and they work great but i have to open them up to check if i have any notifications.
Being able to inject a function that captures the unread notification webhook/ajax call and send a update to the UI to change the badge and/or the account icon would be very nice.
We are looking at adding an API into the tab that you can use for doing this
This would be amazing. Two of us at the office are now paying for Wavebox (and love it!), but getting Asana badge support would pull in the rest of the team. While making it a native supported site would be great, this solution could work too.
We're hoping to start shipping our extension api in September, so isn't too far off :)
Hi, we've started to move some tooling into the Weblink accounts for this. In version 3.8.0 the API can be enabled through settings...

Once you've done this, the page or custom JS on the account can use a few APIs to change badges, counts, notifications etc.
window.wavebox.badge.setCount(10)
window.wavebox.badge.setHasUnreadActivity(true)
window.wavebox.tray.setMessages([
{
id: 'message_id_1',
text: 'Bob said: You have a message',
date: 1516022635099
}
])
// html5 apis available for notifications
Notification.requestPermission()
new Notfication('test', {})
We're looking a putting a more formal mechanism together for loading this in and along with it some documentation, but thought I'd give you heads-up if you want to give it a try :)