I am trying to implement sending more than a 1000 notifications at a time. My mobile app has to notify workers in a city about new job offerings and I have to notify them.
However, in the docs it says that the limit is a 1000 keys in the array so that I can do:
admin.messaging().sendToDevice(...arrayOfThousandKeys, payload);
How can I send more than a 1000? Do I split it in 2 or more arrays? Everything is appreciated!
Yes, just call the API as many times as needed to send all the messages.