Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#4 | social_pwa_status.png | 94.73 KB | jaapjan |
Comments
Comment #2
frankgraave CreditAttribution: frankgraave for Open Social commentedHi 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
Comment #3
magick93 CreditAttribution: magick93 commentedWe 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.
Comment #4
jaapjan CreditAttribution: jaapjan commentedI 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.
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!
Comment #5
johnreytanquinco CreditAttribution: johnreytanquinco commentedHi @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!
Comment #6
magick93 CreditAttribution: magick93 commentedTo clarify, when you say Push, are you referring to pushing to users mobile device?
Or merely as a server push event?
Comment #7
jaapjan CreditAttribution: jaapjan commentedThe 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.
Comment #8
bramtenhove CreditAttribution: bramtenhove for Open Social commentedYesterday 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.
Comment #10
Anybody@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?