signalpoint / firebase

The Firebase module for Drupal 7.
GNU General Public License v3.0
3 stars 0 forks source link

Notification to more than 1000 users at a time #2

Open andrewjlow opened 5 years ago

andrewjlow commented 5 years ago

Hi there,

I am looking at potentially sending over 1000 firebase notifications. I previously used the push notification module, however I always had a timeout error - https://www.drupal.org/project/push_notifications/issues/2891171.

In it's current state, can the module handle over 1000 notifications?

signalpoint commented 5 years ago

Since this is a "programmer's module" I think this module can handle it.

This module doesn't actually send out any notifications for you, it's up to you the developer to decide when to call fcm_message_send().

You can send that function 1 or more tokens, or in the event of thousands of notifications, I'd advise wrapping the batches of say 1000 into a Drupal Queue.

leopaccanaro commented 5 years ago

There is a limitation on Apple/Google side. If you send too much, they will ignore all but the last notification for the same user.

Em 6 de fev de 2019, à(s) 17:38, Tyler Frankenstein notifications@github.com escreveu:

Since this is a "programmer's module" I think this module can handle it.

This module doesn't actually send out any notifications for you, it's up to you the developer to decide when to call fcm_message_send().

You can send that function 1 or more tokens, or in the event of thousands of notifications, I'd advise wrapping the batches of say 1000 into a Drupal Queue.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/signalpoint/firebase/issues/2#issuecomment-461158353, or mute the thread https://github.com/notifications/unsubscribe-auth/AQAF4p6frcHss1NdlzspSkTtn6qdkUkmks5vKy85gaJpZM4akd3D.