Search code examples
firebasefirebase-cloud-messaging

Firebase cloud messaging HTTP v1 messages:send endpoint timeouts


We're using the following fcm http v1 endpoint to dispatch push notifications: https://fcm.googleapis.com/v1/projects/{project}/messages:send

The problem:

is that the endpoint is super slow, and sometimes it takes more than 5 seconds to get a response. As a result our requests fail. This happens VERY often (Multiple times per day. The payloads are small - 0.5kb)

My question

Should I consider that normal and increase the timeout to something like 10 seconds, or should I be worried about some bigger issue?

Has anyone else noticed that issue?

Thanks


Solution

  • We actually got in touch with Google support, and we were told that a timeout of 5 seconds is way too low, and actually on the documentation they suggest 10 seconds timeout, so for anyone reading this post, google considers 10 second requests normal and that's what we were advised to do...