@@ -192,8 +192,7 @@ struct Notification {
192
192
AndroidNotificationParams* android;
193
193
};
194
194
195
- // / @brief Data structure used to send messages to, and receive messages from,
196
- // / cloud messaging.
195
+ // / @brief Data structure used to receive messages from cloud messaging.
197
196
struct Message {
198
197
// / Initialize the message.
199
198
Message ()
@@ -241,9 +240,6 @@ struct Message {
241
240
// / Authenticated ID of the sender. This is a project number in most cases.
242
241
// /
243
242
// / Any value starting with google.com, goog. or gcm. are reserved.
244
- // /
245
- // / This field is only used for downstream messages received through
246
- // / Listener::OnMessage().
247
243
std::string from;
248
244
249
245
// / This parameter specifies the recipient of a message.
@@ -266,9 +262,6 @@ struct Message {
266
262
// / This means a FCM connection server can simultaneously store 4 different
267
263
// / send-to-sync messages per client app. If you exceed this number, there is
268
264
// / no guarantee which 4 collapse keys the FCM connection server will keep.
269
- // /
270
- // / This field is only used for downstream messages received through
271
- // / Listener::OnMessage().
272
265
std::string collapse_key;
273
266
274
267
// / The metadata, including all original key/value pairs. Includes some of the
@@ -300,9 +293,6 @@ struct Message {
300
293
// / Parameters: "message_id" and "error"
301
294
// /
302
295
// / If this field is missing, the message is a regular message.
303
- // /
304
- // / This field is only used for downstream messages received through
305
- // / Listener::OnMessage().
306
296
std::string message_type;
307
297
308
298
// / Sets the priority of the message. Valid values are "normal" and "high." On
@@ -319,9 +309,6 @@ struct Message {
319
309
// /
320
310
// / For more information, see [Setting the priority of a message][1].
321
311
// /
322
- // / This field is only used for downstream messages received through
323
- // / Listener::OnMessage().
324
- // /
325
312
// / [1]:
326
313
// / https://firebase.google.com/docs/cloud-messaging/concept-options#setting-the-priority-of-a-message
327
314
std::string priority;
@@ -331,24 +318,15 @@ struct Message {
331
318
// / supported is 4 weeks, and the default value is 4 weeks. For more
332
319
// / information, see [Setting the lifespan of a message][1].
333
320
// /
334
- // / This field is only used for downstream messages received through
335
- // / Listener::OnMessage().
336
- // /
337
321
// / [1]: https://firebase.google.com/docs/cloud-messaging/concept-options#ttl
338
322
int32_t time_to_live;
339
323
340
324
// / Error code. Used in "nack" messages for CCS, and in responses from the
341
325
// / server.
342
326
// / See the CCS specification for the externally-supported list.
343
- // /
344
- // / This field is only used for downstream messages received through
345
- // / Listener::OnMessage().
346
327
std::string error;
347
328
348
329
// / Human readable details about the error.
349
- // /
350
- // / This field is only used for downstream messages received through
351
- // / Listener::OnMessage().
352
330
std::string error_description;
353
331
354
332
// / Optional notification to show. This only set if a notification was
@@ -359,9 +337,6 @@ struct Message {
359
337
// / to make a copy of either the Message or Notification. Copying the Message
360
338
// / object implicitly makes a deep copy of the notification (allocated with
361
339
// / new) which is owned by the Message.
362
- // /
363
- // / This field is only used for downstream messages received through
364
- // / Listener::OnMessage().
365
340
Notification* notification;
366
341
367
342
// / A flag indicating whether this message was opened by tapping a
@@ -370,9 +345,6 @@ struct Message {
370
345
bool notification_opened;
371
346
372
347
// / The link into the app from the message.
373
- // /
374
- // / This field is only used for downstream messages received through
375
- // / Listener::OnMessage().
376
348
std::string link;
377
349
378
350
// / @cond FIREBASE_APP_INTERNAL
0 commit comments