Skip to content

Commit fdfea34

Browse files
Ben-Ji-Lany-lia
authored andcommitted
send fcm notifications by 500
1 parent 9da33e0 commit fdfea34

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

agir/activity/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,8 @@ def push(self, segment=None):
615615
}
616616

617617
try:
618-
response = gcm_devices.send_message(notification_message)
618+
for devices in gcm_devices.iterator():
619+
response = devices.send_message(notification_message)
619620
except Exception as e:
620621
response = f"Exception: {str(e)}"
621622

0 commit comments

Comments
 (0)