You can receive a notification for a group of devices if you know the name_of_and_and_name that was used to create it. Link: https://firebase.google.com/docs/cloud-messaging/android/device-group
Use this:
https:
Link: https://groups.google.com/forum/#!topic/firebase-talk/ytovugx8XNs
For instance:
let options = {
url: 'https://android.googleapis.com/gcm/notification?notification_key_name=the_name',
method: 'GET',
headers: {
"Content-Type": "application/json",
"Authorization": "key=" + authorizationKey,
"project_id": projectId
}
};
request(options, function (error, response, body) {
if (!error) {
res.json(body);
}
else {
res.json(error);
}
});
One thing I discovered when using this call was that the notification returned was always different, but I was able to successfully use it to add or remove register_ids.
I will add additional information from the comments I made earlier:
- . - , . , , , .
- - (. @AL ). register_ids . , . , .