I know that a group is deleted after each member has been unregistered, but I do not know that registration identifiers are registered manually. What can I do?
When sending a message to a group of devices, you will receive a response containing the parameters success
and failure
. 0
The value for `fail" means that the messages that we delivered correctly on the FCM server.
These were unsuccessful messages, a list of registration response tokens that were unsuccessful will be in the response, where the board should resend the message. Referring to docs :
. . . . , HTTP XMPP.
HTTP POST
https://fcm.googleapis.com/fcm/send
Content-Type:application/json
Authorization:key=AIzaSyZ-1u...0GBYzPu7Udno5aA
{
"to": "aUniqueKey",
"data": {
"hello": "This is a Firebase Cloud Messaging Device Group Message!",
}
}
HTTP-
"". notification_key
2 , :
{
"success": 2,
"failure": 0
}
" " - notification_key
3 . . , :
{
"success":1,
"failure":2,
"failed_registration_ids":[
"regId1",
"regId2"
]
}
, notification_key
, .
, FCM ( dry_run
, API- ), , ( NotRegistered
, Server ( - ).
, , ?
( onTokenRefresh()
), , , , , ( ).
. . .