Håber det vil hjælpe dig.
// Chunk of Array with 999 Records, I have not taken risk for 1000 users :D
// Here $array is a collection of rows which you get from Table.
$final_array = array_chunk($array, 999);
// Loop for Every Sub Array and Send to FCM Server
foreach($final_array as $array_of_chunk) {
// Your code for sending notification...
// $registrationIds = $array_of_chunk;
}
Du kan se den fulde kode til PHP her Send Firebase-meddelelse til mere end 1000 brugere ad gangen fra PHP .
Tak.