Gets or sets the time-to-live duration of the message.
Properties
CollapseKey
string CollapseKey
Gets or sets a collapse key for the message.
Collapse key serves as an identifier for a group of messages that can be collapsed, so that only the last message gets sent when delivery can be resumed. A maximum of 4 different collapse keys may be active at any given time.
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. When set, overrides any data fields set on the top-level Message.
DirectBootOk
bool DirectBootOk
Gets or sets a boolean indicating whether messages will be allowed to be delivered to the app while the device is in direct boot mode.
[[["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 2024-11-07 UTC."],[],[],null,["# FirebaseAdmin.Messaging.AndroidConfig Class Reference\n\nFirebaseAdmin.Messaging.AndroidConfig\n=====================================\n\nRepresents the Android-specific options that can be included in a [Message](/docs/reference/admin/dotnet/class/firebase-admin/messaging/message#class_firebase_admin_1_1_messaging_1_1_message).\n\nSummary\n-------\n\n| ### Properties ||\n|--------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [CollapseKey](#class_firebase_admin_1_1_messaging_1_1_android_config_1ad3d4dfb8c23427aa6ec78515850c6651) | `string` Gets or sets a collapse key for the message. |\n| [Data](#class_firebase_admin_1_1_messaging_1_1_android_config_1a2eedffaa3abe8dea8e752c3425a8f00d) | `IReadOnlyDictionary\u003c string, string \u003e` Gets or sets a collection of key-value pairs that will be added to the message as data fields. |\n| [DirectBootOk](#class_firebase_admin_1_1_messaging_1_1_android_config_1a698b15e713eeb8e043d9bfa6b2125e35) | `bool` Gets or sets a boolean indicating whether messages will be allowed to be delivered to the app while the device is in direct boot mode. |\n| [FcmOptions](#class_firebase_admin_1_1_messaging_1_1_android_config_1a280d952b828f879abadeed191003680f) | [AndroidFcmOptions](/docs/reference/admin/dotnet/class/firebase-admin/messaging/android-fcm-options#class_firebase_admin_1_1_messaging_1_1_android_fcm_options) Gets or sets the FCM options to be included in the message. |\n| [Notification](#class_firebase_admin_1_1_messaging_1_1_android_config_1a05ea3f360589e026df4c25b8f07f3b5c) | [AndroidNotification](/docs/reference/admin/dotnet/class/firebase-admin/messaging/android-notification#class_firebase_admin_1_1_messaging_1_1_android_notification) Gets or sets the Android notification to be included in the message. |\n| [Priority](#class_firebase_admin_1_1_messaging_1_1_android_config_1a9f97e394efd61eaf7cbf1dd15694abe5) | [Priority](/docs/reference/admin/dotnet/namespace/firebase-admin/messaging#namespace_firebase_admin_1_1_messaging_1a347b410be469983db852f5b5e75fa767) Gets or sets the priority of the message. |\n| [RestrictedPackageName](#class_firebase_admin_1_1_messaging_1_1_android_config_1ad38dd9f0bd8ca08e41b758dae9d9ee6b) | `string` Gets or sets the package name of the application where the registration tokens must match in order to receive the message. |\n| [TimeToLive](#class_firebase_admin_1_1_messaging_1_1_android_config_1ae3356b63026aa1ef81937dfdc65caea6) | `TimeSpan` Gets or sets the time-to-live duration of the message. |\n\nProperties\n----------\n\n### CollapseKey\n\n```text\nstring CollapseKey\n``` \nGets or sets a collapse key for the message.\n\nCollapse key serves as an identifier for a group of messages that can be collapsed, so that only the last message gets sent when delivery can be resumed. A maximum of 4 different collapse keys may be active at any given time. \n\n### Data\n\n```text\nIReadOnlyDictionary\u003c string, string \u003e Data\n``` \nGets or sets a collection of key-value pairs that will be added to the message as data fields.\n\nKeys and the values must not be null. When set, overrides any data fields set on the top-level [Message](/docs/reference/admin/dotnet/class/firebase-admin/messaging/message#class_firebase_admin_1_1_messaging_1_1_message). \n\n### DirectBootOk\n\n```text\nbool DirectBootOk\n``` \nGets or sets a boolean indicating whether messages will be allowed to be delivered to the app while the device is in direct boot mode. \n\n### FcmOptions\n\n```text\nAndroidFcmOptions FcmOptions\n``` \nGets or sets the FCM options to be included in the message. \n\n### Notification\n\n```text\nAndroidNotification Notification\n``` \nGets or sets the Android notification to be included in the message. \n\n### Priority\n\n```text\nPriority Priority\n``` \nGets or sets the priority of the message. \n\n### RestrictedPackageName\n\n```text\nstring RestrictedPackageName\n``` \nGets or sets the package name of the application where the registration tokens must match in order to receive the message. \n\n### TimeToLive\n\n```text\nTimeSpan TimeToLive\n``` \nGets or sets the time-to-live duration of the message."]]