user3933324
user3933324

Reputation: 143

GMail stops sending push notification

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?

Upvotes: 7

Views: 1295

Answers (1)

Anze
Anze

Reputation: 491

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.

Upvotes: 1

Related Questions