Push Notifications

https://www.phpbb.com/ideas/
Post Reply
Ideas Bot
Registered User
Posts: 424
Joined: Sat Oct 13, 2012 10:06 am

Push Notifications

Post by Ideas Bot » Sun Jun 01, 2014 11:08 pm

For both mobile and web browsers, use push notifications within a framework like node.js instead of php queries every page to show new content changes. This would let you have instant updates for new posts, edits, deletions, new PMs, and probably a lot else, while still on the same page. Would bring phpbb more towards the modern age and wouldn't strain the host server.

User avatar
AmigoJack
Registered User
Posts: 5237
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Push Notifications

Post by AmigoJack » Fri Jul 11, 2014 9:44 am

Downsides of AJAXification:
  • increasing barriers for handicapped users,
  • making it difficult/impossible to save a site as offline version,
  • has to be supported by the internet browser - there are still versions out there being unable to do this,
  • internet browser/phpBB/server caches are bypassed - traffic may actually increase.
The worst thing about censorship is ███████████

Senky
Extension Customisations
Extension Customisations
Posts: 1641
Joined: Thu Apr 30, 2009 8:49 pm
Location: Slovakia
Name: Jakub

Re: Push Notifications

Post by Senky » Wed Aug 27, 2014 8:46 am

AmigoJack wrote:Downsides of AJAXification:
  • increasing barriers for handicapped users,
  • making it difficult/impossible to save a site as offline version,
  • has to be supported by the internet browser - there are still versions out there being unable to do this,
  • internet browser/phpBB/server caches are bypassed - traffic may actually increase.
None is true:
  • no change for handicapped users - ARIA does a great job in accessing modern web technologies for handicapped users, taking exceptional care for ajaxifying of websites.
  • Ctrl+S still works. All other browser plugins as well, since they just take current DOM structure and save it locally. Ajax just changes DOM on the fly.
  • not true. All browsers supported by 3.1 are able of ajax requests
  • in fact, using ajax makes less traffic, since you never need to download the same code twice (header, images, javascript codes)
However this idea is about something else, I believe. Push notifications is technology of two-side communication, meaning both sides are active in sending and receiving data. For this, you need a server with proper software capable of that. According to my knowledge, this is by no means a common part of today's hostings. Also, complete rewriting of code, using some of the JS frameworks (like Angular.js) would be required. Maybe this can be the way phpBB 4 goes, but not sooner.

User avatar
AmigoJack
Registered User
Posts: 5237
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Push Notifications

Post by AmigoJack » Wed Aug 27, 2014 11:25 am

Senky wrote:no change for handicapped users - ARIA
So you mean WAI-ARIA? How does it honor i.e. people with neurological problems that need as little optical movement (slides, flashes, popups) as possible?
Senky wrote:Ctrl+S still works
No, this saves the document(s), not the current DOM. Hence all JS functions that rely on data exchange with the server will fail when being offline.
Senky wrote:All browsers supported by 3.1 are able of ajax requests
That's not the point: sometimes clients really have no support, or are forced to not have, or JS is stripped. BlackBerry's Curve internet browser does not support JS, hence no XMLHttpRequest aswell. Or do you mistake AJAX for only JS enhancements?
Senky wrote:you never need to download the same code twice
Files: yes. Data: no. AJAX targets to dynamically load data - that's what I mean.
Senky wrote:Push notifications ... need a server with proper software ... by no means a common part of today's hostings
While I have no idea how an HTTP server is unable to this already the HTTP clients are also already able to aquire such things thru WebSockets, which are standardized since 2011 and implemented by internet browsers even earlier.
The worst thing about censorship is ███████████

Senky
Extension Customisations
Extension Customisations
Posts: 1641
Joined: Thu Apr 30, 2009 8:49 pm
Location: Slovakia
Name: Jakub

Re: Push Notifications

Post by Senky » Wed Aug 27, 2014 2:45 pm

AmigoJack wrote:So you mean WAI-ARIA? How does it honor i.e. people with neurological problems that need as little optical movement (slides, flashes, popups) as possible?
Yes I mean that. How does ajax changes the way page animates? Disabling JS at all can do that, but ajax has nothing with that. You can replace old data with new one received by ajax instantly. You do not need to animate that (even though users get confused when no animation is performed while data are changed)
AmigoJack wrote:No, this saves the document(s), not the current DOM. Hence all JS functions that rely on data exchange with the server will fail when being offline.
Alright valid statement. But the question is, if people really use this functionality at sites using phpBB...
AmigoJack wrote:That's not the point: sometimes clients really have no support, or are forced to not have, or JS is stripped. BlackBerry's Curve internet browser does not support JS, hence no XMLHttpRequest aswell. Or do you mistake AJAX for only JS enhancements?
In current state of web development, there is one rule followed by all modern designs, corporations, most visited sites (including Youtube): that if user has not js enabled, they do not care.
AmigoJack wrote:Files: yes. Data: no. AJAX targets to dynamically load data - that's what I mean.
Yes, ajax regularly requests for new data. But that is not the case of push notifications. Also, using ajax to reload page (like Youtube does) makes site load faster because of less data requested. Generally heavy ajaxifying of site causes less load to servers, thus traffic as well.
AmigoJack wrote:While I have no idea how an HTTP server is unable to this already the HTTP clients are also already able to aquire such things thru WebSockets, which are standardized since 2011 and implemented by internet browsers even earlier.
HTTP has nothing to do with server. It is a type of communication. Yes, WebSockets are here, however that is the case I speak about. Clients (browsers) are capable of such communication, but servers has very poor support of such technology.

User avatar
potku
Registered User
Posts: 799
Joined: Wed Dec 22, 2004 10:26 pm
Location: Tampere, Finland
Contact:

Re: Push Notifications

Post by potku » Wed Sep 27, 2017 7:23 am

This would really be a nice addition. There was an EXT in development for WhatsApp, and there is one in development for Telegram.

I have no idea how difficult to code something like this would be, but it would surely keep people closer to phpBB boards. That's just how it is nowadays.
Potku.net

"Before I speak, I have something important to say."

- Groucho Marx

mrgtb
Registered User
Posts: 532
Joined: Wed Oct 03, 2007 10:51 am

Re: Push Notifications

Post by mrgtb » Sat Dec 16, 2017 12:12 am

A lot of people are asking for this with paid forum software.

The days of manually refreshing a page to see any new posts made are gone. People now want this a lot, and today this is really what it's all about getting instant notifications without having to manually refresh a page

Post Reply

Return to “phpBB Ideas”

Who is online

Users browsing this forum: No registered users and 4 guests