Push notifications delay with GCM

2019-06-20 05:27发布

问题:

We have an app (Ruby on Rails) that sends push notifications to an android app and we're facing an issue with GCM where some of these notifications are either delayed or never received. Considering the fact that these notifications are being sent to employees and not end-users my questions is:

What the best way to send these push notifications without any delay or drop and is there a way to send push notifications independently from the available services such as GCM and SNS?

Please keep in mind that we're looking for a solutions that can send these notifications without any delay as for the app to perform well the notification must be received within 1 to 20 seconds from the time it was sent.

Thanks in advance for anyone that will reply to this question...

回答1:

Have a look at "Pushy":

They state the following on their website:

The most reliable push notification gateway, perfect for real-time applications.

Google Cloud Messaging simply doesn't cut it for time-sensitive, real-time apps, due to its instability and push notification throttling.

Pushy works by maintaining a dedicated background socket connection using the MQTT protocol, an extremely light-weight pub/sub protocol that consumes very little network bandwidth and battery, which makes it perfect for mobile.

You can use it for free with up to 100 devices, so you could just give it a try to see, if it fits your needs. I didn't try it.