MessageId field in client payload guaranteed to match MessageId obtained after sending a message on the server? #9757
Replies: 1 comment
-
|
I would not treat that suffix match as a documented guarantee. The server send API returns a message resource name, and the client SDK exposes an FCM message id, but the docs do not state a contract that the client For reliable multicast correlation, include your own id in the data payload, for example |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Firebase returns an FCM message id when a message is sent on the server side if the operation was successful. This string is in the form:
Notice the last part of the string. When the client receives the message, an
fcmMessageIdfield is present in the payload on the web matching this last part. On mobile, amessageIdis also available.My question is: is it guaranteed that the client
fcmMessageId/messageIdwill be identical to the last part of theMessageIdstring obtained on the server as a result of sending the message using the FCM API?Based on my analysis, it looks like this is the case, but I do not see anything about this in the documentation and searching this forum yielded no result. I want to rely on this id for processing after a multicast send operation, so a guarantee is very important.
Beta Was this translation helpful? Give feedback.
All reactions