Hello

I see from https://www.drupal.org/project/social/issues/2766871#comment-12383497 that there has been some work done on Push Notifications.

My team is also working on adding Push Notifications to OpenSocial.

Rather than reinventing the wheel, it would be good to get some insights into what work has been done, so that we can hopefully collaborate.

Can someone shed some light on the architecture and development around Push Notifications in OpenSocial?

Thanks

CommentFileSizeAuthor
#4 social_pwa_status.png94.73 KBjaapjan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

magick93 created an issue. See original summary.

frankgraave’s picture

Hi magick93,

At this point we have working push notifications in a private Open Social environment, but it is still experimental and needs further development.

For the push notifications support we use this library. We've created a new activity context to use with the message stack. So when someone likes, comments or posts something on the platform, then the related message templates can have the activity destination "Web Push".

Nice to hear that you're busy creating this yourself! I'm curious on your architecture as well.

Cheers, Frank

magick93’s picture

We are looking at using the Message stack, as use-case 3 on https://www.drupal.org/node/2180149 basically describes exactly what we are looking for.

jaapjan’s picture

FileSize
94.73 KB

I suggest to take a look into: https://www.drupal.org/docs/8/distributions/open-social/activity-stream-... for the architecture of the Notifications. It is built on top of the Message module and works really well for notifications in Open Social notification toolbar, e-mail notifications, activity streams etc. We use this for Push notifications as well.

Social PWA Status

We've reserved time to work on this in January and hopefully share the work we've been doing in February. Not sure about the exact details yet and if it should be in the distribution or a separate project. Feel free to contact me directly in case you would like to contribute to this!

johnreytanquinco’s picture

Hi @jaapjan, thank you for the response. How is the work on push notification goes? Can you please give us some detailed updates about this request? Thanks!

magick93’s picture

To clarify, when you say Push, are you referring to pushing to users mobile device?
Or merely as a server push event?

jaapjan’s picture

Assigned: Unassigned » bramtenhove

The push notifications will be send to a mobile device or supported browser. This allows you to use Open Social as a full web app (although Apple is still not supporting it on the iPhone). We've finished 5 stories and hope to finish the other 4 next week. The Push Notifications will be a separate module on d.o. We'll post the link here after we're done.

bramtenhove’s picture

Status: Active » Fixed

Yesterday I published the Social PWA module, I encourage you to give it a try!
You can find the module here: https://www.drupal.org/project/social_pwa.

We did not include it in the distribution as this module has some special requirements for your webserver in order for it to work.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Anybody’s picture

@bramtenhove Great work! Just found this issue as we were also looking for push notification integration.

I haven't seen the module on the project page yet, perhaps it would make sense to list it there?