Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gmail push notification error (Only one user push notification client allowed per developer)

I tried to execute gmail api's watch on my two gmail accounts and it works fine.

But when the other user tried to do so, it shows this error:

HTTP error 400 : "Only one user push notification client allowed per developer (call /stop then try again)">

I don't know if the problem is on the pub/sub client configuration or doing stop and watch will resolve the problem?

Can someone explain the meaning of this statement "Only one user push notification client allowed per developer"?

like image 605
khulas15 Avatar asked Jul 30 '15 05:07

khulas15


People also ask

Does Gmail use push notifications?

Whenever you get a new email sent to your Gmail, you can now get a push notification sent to your mobile device. You will need to install the Power Automate app for iOS or Android to use this flow.

Does Gmail support Webhooks?

The Gmail API uses the Cloud Pub/Sub API to deliver push notifications. This allows notification via a variety of methods including webhooks and polling on a single subscription endpoint.


2 Answers

Try using a different project for the Cloud Pub/Sub topic that the other user wants to set up a Gmail API watch on.

like image 82
Jason Ganetsky Avatar answered Nov 11 '22 22:11

Jason Ganetsky


You can always renew a watch by first stopping the watch and then immediately initiating a new watch right after. So, try to use users.stop once before you use users.watch.

like image 44
Majid Shahabfar Avatar answered Nov 11 '22 23:11

Majid Shahabfar