ElkArte Community

Elk Development => Feature Discussion => Exterminated Features => Topic started by: meetdilip on July 08, 2016, 06:27:13 am

Title: Push Notification
Post by: meetdilip on July 08, 2016, 06:27:13 am
How does Elk serve browser based notifications ?
Title: Re: Push Notification
Post by: ahrasis on July 08, 2016, 07:24:05 am
1.1 has that, right?
Title: Re: Push Notification
Post by: meetdilip on July 08, 2016, 07:55:37 am
I just got some notifications in browser.
Title: Re: Push Notification
Post by: emanuele on July 08, 2016, 09:28:00 am
It's not exactly a push notification, it's a desktop notification, and on top of that, it's using an API that is basically deprecated, so it's already old.
On the bright side, sine the feature exists it should be "easy" to replace it with a more modern implementation (provided the "standard" will not change entirely before we get the new one..).
Title: Re: Push Notification
Post by: meetdilip on July 08, 2016, 12:29:54 pm
Which API is in use ?
Title: Re: Push Notification
Post by: emanuele on July 08, 2016, 03:50:22 pm
http://www.html5rocks.com/en/tutorials/notifications/quick/
And using the plugin:
https://github.com/ttsvetko/HTML5-Desktop-Notifications
Title: Re: Push Notification
Post by: meetdilip on July 08, 2016, 07:20:26 pm
No plans to try something like Pusher.com ?

Check this : http://www.webdistortion.com/2012/02/02/real-time-push/
Title: Re: Push Notification
Post by: emanuele on July 09, 2016, 02:37:15 am
From me personally, not in the short term (I have other things in my todo list, sorry).
I added the html5 desktopnotifications because it seemed easy. If the current/future W3 webpush or whatever-they-want-to-call-it notifications will not be a pain I'll explore the option and try to use them, otherwise I'll just drop it from final and make an addon or something.
Title: Re: Push Notification
Post by: CrimeS on July 09, 2016, 04:09:47 am
I wouldn't say that it's a must have :) In fact I turn anything like that off.
Title: Re: Push Notification
Post by: meetdilip on July 09, 2016, 06:05:27 am
Quote from: emanuele – From me personally, not in the short term (I have other things in my todo list, sorry).
I added the html5 desktopnotifications because it seemed easy. If the current/future W3 webpush or whatever-they-want-to-call-it notifications will not be a pain I'll explore the option and try to use them, otherwise I'll just drop it from final and make an addon or something.

I am just trying to have a chat about it :)

A few good reads

https://wiki.mozilla.org/Firefox/Push_Notifications

https://people.mozilla.org/~ewong2/push-notification-test/

https://developer.mozilla.org/en/docs/Web/API/Push_API
Title: Re: Push Notification
Post by: Bloc on August 20, 2016, 04:51:19 am
Seems its already deprecated :P ..

One working demo at https://jsfiddle.net/yoshi6jp/Umc9A/

I see this could even be a theme option..as various notifications are available in the theme, like new PM's, new approvals etc. it could probably be implemented that way. Maybe the popup would list everything "new" in a compact text, multiple popups might be stretching it lol.

Although..as it meant to show at any-time to pull users back to the site, it would probably be better as a core function.
Title: Re: Push Notification
Post by: emanuele on August 20, 2016, 09:39:32 am
Yeah... in fact it's not really a standard yet, so it's easy to deprecate... :-\
I guess I'll keep it like that for the time being, hopefully one day they will define a real standard. xD
Title: Re: Push Notification
Post by: emanuele on December 04, 2016, 09:21:08 am
Likely duplicate of http://www.elkarte.net/community/index.php?topic=2234.0
Title: Re: Push Notification
Post by: ahrasis on December 09, 2016, 10:10:42 pm
Not really a duplicate if one is for Android/iOS and the other for web browsers. They are two different things, I think.
Title: Re: Push Notification
Post by: badmonkey on December 10, 2016, 07:31:12 am
Indeed.  Push notifications would be nice.  They should happen with browser closed and screen off.   ;)