Converting Webmentions to Push Notifications

Since I set up Webmentions in January 2018 using Webmention.io, I've been starting to receive more interactions with my site across the social web.

However, up until today, the only way I'd be able to see what Webmentions I'd received was to go and actively check. I'd, many times a day, open Indigenous for Android, the Indie reader I use, and refresh it to look at what's in my notifications.

This isn't quite as interactive as you'd want, especially as these could be used for near-realtime communication across websites. While thinking about it, I started looking through the documentation for Webmention.io, but found no mention of it. Failing that, I logged into the dashboard and saw a "Web Hooks" button, which was exactly what I wanted!

This Webhook hits the newly created https://www-api.jvt.me/notifications/webmention endpoint with a shared secret (to prevent spam) and then sends a push notification via PushBullet, which I currently use to notify me when my site has deployed.

You can see the code changes required on the Merge Request on GitLab.com: Add webhook for mapping Webmention.io to push notifications.

Update 2020-01-28: Since finding out I can only send 100 messages a month with Pushbullet, I have since replaced it with Pushover, after getting some good recommendations for it. You can see the code changes required to add Pushover Merge Request on GitLab.com: Use Pushover for Webmention notifications.

Written by Jamie Tanna's profile image Jamie Tanna on , and last updated on .

Content for this article is shared under the terms of the Creative Commons Attribution Non Commercial Share Alike 4.0 International, and code is shared under the Apache License 2.0.

#www.jvt.me #webmention #indieweb.

Syndication

This post will be syndicated to these sites:

This post was filed under articles.

Has this content helped you? Please consider supporting me so I can continue to create content like this!

Related Posts

Other posts you may be interested in:

Interactions with this post

Interactions with this post

Below you can find the interactions that this page has had using WebMention.

Have you written a response to this post? Let me know the URL:

Do you not have a website set up with WebMention capabilities? You can use Comment Parade.