5

I am creating new application in rails 5. I want to use Web Push notifications. I haven't find any document that'll help me in web push notifications.

Any help will be appreciable .Thanks in advance.

dArK kNiGhT
  • 151
  • 2
  • 12
  • Currently there aren't any Ruby libraries for web push. You can build from scratch or use a service like Pushpad: it has a [Ruby library](https://github.com/pushpad/pushpad-ruby). – collimarco Mar 02 '17 at 12:03
  • Look this link: https://rossta.net/blog/web-push-notifications-from-rails.html – Boris BRESCIANI Mar 02 '17 at 21:23
  • 1
    Thank you guys for your suggestions. I used [this](https://rossta.net/blog/web-push-notifications-from-rails.html) to implement the web push notifications. Thanks again – dArK kNiGhT Mar 06 '17 at 06:47

2 Answers2

10

I'm using this: https://github.com/zaru/webpush

Good documentation, and good example!

cappie013
  • 2,354
  • 1
  • 22
  • 30
1

Here is a really good blog post which really helped me- https://rossta.net/blog/using-the-web-push-api-with-vapid.html

The good thing is that there is code for the sample on Github and you can play around with that- https://github.com/rossta/serviceworker-rails-sandbox

Other than that if you are new to using web push notifications, just going through the Google's web fundamentals tutorial is not a bad idea too.

https://developers.google.com/web/fundamentals/codelabs/push-notifications/

Neeraj Shukla
  • 1,271
  • 11
  • 13