Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GMail stops sending push notification

Tags:

gmail-api

I've configured the push notifications following this guide and when calling the watch endpoint I get an expiration of about one week.

During this period I expect to receive notification to the Pub/Sub topic I've configured without the need to call the watch endpoint some time before the expiration date.

However what happens is that after about one day I'm not receiving notifications anymore and calling the watch endpoint doesn't help.

Why GMail has stopped to send notification to the subscription endpoint?

like image 691
user3933324 Avatar asked Mar 31 '17 07:03

user3933324


1 Answers

Gmail Pub/Sub notification subscriptions expire in 7 days, you have to call watch() again to renew your subscription.

https://developers.google.com/gmail/api/guides/push#renewing_mailbox_watch

Maybe that's the issue.

like image 132
Anze Avatar answered Nov 15 '22 11:11

Anze