jlcvp / fcm-node

A Node.JS simple interface to Google's Firebase Cloud Messaging (FCM) for Android & iOS & Web Notification and data push
MIT License
125 stars 48 forks source link

push notification on android appears with huge delay #37

Closed nurulnabi closed 6 years ago

nurulnabi commented 6 years ago

The response perfectly ok but the notification on android devices reaches with huge delay and sometimes it simply doesnt. what could be the probable reason?

HugoHeneault commented 6 years ago

There is no delivrability guaranted for notifications. If you want to be sure of having them instantly you'll have to use VoIP notifications

jlcvp commented 6 years ago

Complementary to @HugoHeneault 's comment. FCM uses a dynamic heartbeat interval for pushing notifications on device. This delay you've experienced can have multiple causes, among them, but not limited to:

For further information about this behavior, you can check out firebase/quickstart-android#307