Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pubsubhubbub doesn't send push notification any more

In order to get notified whenever a channel has a new video I have implemented the Pubsubhubbub protocol as suggested here: https://developers.google.com/youtube/v3/guides/push_notifications

The server I have for the callbackUrl is a Node.js application and I use the "pubsubhubbub" package to bootstrap the creation and handling of any events. But for whatever reason, the server doesn't receive any more requests. I've tried resubscribing to the YouTube channels but to no luck. Is there an expiration date after which all subscriptions are dropped so that I need to re-subscribe regularly? Any help would be very much appreciated.

like image 998
Vlad Avatar asked May 11 '17 20:05

Vlad


People also ask

How often should push notifications be sent?

As a rule of thumb, do not send more than 3-5 notifications every week. Even then, make sure that the notifications have something relevant for the user. Understand how users would use your app in their daily lives and identify opportunities to enhance that experience using push messages.

Can you send specific notifications push users?

Using Firebase tools, you can send individual push notifications without needing a dedicated server, or a third-party service. Two major reasons for sending display notifications are: For marketing purposes - this is when you send a push notification to all users or a subset of users that have something in common.


1 Answers

Short answer, YES. Unfortunately, You need to resubscribe again and again.

As I was looking for the same answer actually, after searching a bit, I found out finally that the subscription has an expiry date. See the "Subscriber Diagnostics" section for details (screenshot from "Subscriber Diagnostics" of my subscription)

enter image description here

like image 83
Tᴀʀᴇǫ Mᴀʜᴍᴏᴏᴅ Avatar answered Nov 09 '22 15:11

Tᴀʀᴇǫ Mᴀʜᴍᴏᴏᴅ