[ Web Proxy ]
URL:
Viewing: https://firebase.google.com/docs/reference/admin/dotnet/class/firebase-admin/messaging/message [Back]  [Original]

FirebaseAdmin.Messaging.Message Class Reference Skip to main content
Overview Fundamentals AI Build Run Reference Samples
Firebase [Firebase]
Send feedback Stay organized with collections Save and categorize content based on your preferences.

FirebaseAdmin.Messaging.Message

Represents a message that can be sent via Firebase Cloud Messaging (FCM).

Summary

Contains payload information as well as the recipient information. The recipient information must be specified by setting exactly one of the Token, Fid, Topic or Condition fields.

Properties

Android
Gets or sets the Android-specific information to be included in the message.
Apns
Gets or sets the APNs-specific information to be included in the message.
Condition
string
Gets or sets the FCM condition to which the message should be sent.
Data
IReadOnlyDictionary< string, string >
Gets or sets a collection of key-value pairs that will be added to the message as data fields.
FcmOptions
Gets or sets the FCM options to be included in the message.
Fid
string
Gets or sets the Firebase Installation ID (FID) of the device to which the message should be sent.
Notification
Gets or sets the notification information to be included in the message.
Token
string
Gets or sets the registration token of the device to which the message should be sent.
Topic
string
Gets or sets the name of the FCM topic to which the message should be sent.
Webpush
Gets or sets the Webpush-specific information to be included in the message.

Properties

Android

AndroidConfig Android

Gets or sets the Android-specific information to be included in the message.

Apns

ApnsConfig Apns

Gets or sets the APNs-specific information to be included in the message.

Condition

string Condition

Gets or sets the FCM condition to which the message should be sent.

Must be a valid condition string such as "'foo' in topics".

Data

IReadOnlyDictionary< string, string > Data

Gets or sets a collection of key-value pairs that will be added to the message as data fields.

Keys and the values must not be null.

FcmOptions

FcmOptions FcmOptions

Gets or sets the FCM options to be included in the message.

Fid

string Fid

Gets or sets the Firebase Installation ID (FID) of the device to which the message should be sent.

Notification

Notification Notification

Gets or sets the notification information to be included in the message.

Token

string Token

Gets or sets the registration token of the device to which the message should be sent.

Deprecated. Use Fid instead.

Topic

string Topic

Gets or sets the name of the FCM topic to which the message should be sent.

Topic names may contain the /topics/ prefix.

Webpush

WebpushConfig Webpush

Gets or sets the Webpush-specific information to be included in the message.

Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-07-08 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-07-08 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page