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 four different collapse keys may be active at any given time.
A collection of data fields to be included in the message. All values must be strings. When provided, overrides any data fields set on the top-level Message.
Time-to-live duration of the message in milliseconds.
AndroidConfig.collapseKey
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 four different collapse keys may be active at any given time.
Signature:
collapseKey?:string;
AndroidConfig.data
A collection of data fields to be included in the message. All values must be strings. When provided, overrides any data fields set on the top-level Message.
Signature:
data?:{[key:string]:string;};
AndroidConfig.directBootOk
A boolean indicating whether messages will be allowed to be delivered to the app while the device is in direct boot mode.
Signature:
directBootOk?:boolean;
AndroidConfig.fcmOptions
Options for features provided by the FCM SDK for Android.
Signature:
fcmOptions?:AndroidFcmOptions;
AndroidConfig.notification
Android notification to be included in the message.
Signature:
notification?:AndroidNotification;
AndroidConfig.priority
Priority of the message. Must be either normal or high.
Signature:
priority?:('high'|'normal');
AndroidConfig.restrictedPackageName
Package name of the application where the registration tokens must match in order to receive the message.
Signature:
restrictedPackageName?:string;
AndroidConfig.ttl
Time-to-live duration of the message in milliseconds.
[[["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-12 UTC."],[],[],null,["# AndroidConfig interface\n\nRepresents the Android-specific options that can be included in an [Message](./firebase-admin.messaging.md#message).\n\n**Signature:** \n\n export interface AndroidConfig \n\nProperties\n----------\n\n| Property | Type | Description |\n|---------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [collapseKey](./firebase-admin.messaging.androidconfig.md#androidconfigcollapsekey) | string | 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 four different collapse keys may be active at any given time. |\n| [data](./firebase-admin.messaging.androidconfig.md#androidconfigdata) | { \\[key: string\\]: string; } | A collection of data fields to be included in the message. All values must be strings. When provided, overrides any data fields set on the top-level [Message](./firebase-admin.messaging.md#message). |\n| [directBootOk](./firebase-admin.messaging.androidconfig.md#androidconfigdirectbootok) | boolean | A boolean indicating whether messages will be allowed to be delivered to the app while the device is in direct boot mode. |\n| [fcmOptions](./firebase-admin.messaging.androidconfig.md#androidconfigfcmoptions) | [AndroidFcmOptions](./firebase-admin.messaging.androidfcmoptions.md#androidfcmoptions_interface) | Options for features provided by the FCM SDK for Android. |\n| [notification](./firebase-admin.messaging.androidconfig.md#androidconfignotification) | [AndroidNotification](./firebase-admin.messaging.androidnotification.md#androidnotification_interface) | Android notification to be included in the message. |\n| [priority](./firebase-admin.messaging.androidconfig.md#androidconfigpriority) | ('high' \\| 'normal') | Priority of the message. Must be either `normal` or `high`. |\n| [restrictedPackageName](./firebase-admin.messaging.androidconfig.md#androidconfigrestrictedpackagename) | string | Package name of the application where the registration tokens must match in order to receive the message. |\n| [ttl](./firebase-admin.messaging.androidconfig.md#androidconfigttl) | number | Time-to-live duration of the message in milliseconds. |\n\nAndroidConfig.collapseKey\n-------------------------\n\nCollapse 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 four different collapse keys may be active at any given time.\n\n**Signature:** \n\n collapseKey?: string;\n\nAndroidConfig.data\n------------------\n\nA collection of data fields to be included in the message. All values must be strings. When provided, overrides any data fields set on the top-level [Message](./firebase-admin.messaging.md#message).\n\n**Signature:** \n\n data?: {\n [key: string]: string;\n };\n\nAndroidConfig.directBootOk\n--------------------------\n\nA boolean indicating whether messages will be allowed to be delivered to the app while the device is in direct boot mode.\n\n**Signature:** \n\n directBootOk?: boolean;\n\nAndroidConfig.fcmOptions\n------------------------\n\nOptions for features provided by the FCM SDK for Android.\n\n**Signature:** \n\n fcmOptions?: AndroidFcmOptions;\n\nAndroidConfig.notification\n--------------------------\n\nAndroid notification to be included in the message.\n\n**Signature:** \n\n notification?: AndroidNotification;\n\nAndroidConfig.priority\n----------------------\n\nPriority of the message. Must be either `normal` or `high`.\n\n**Signature:** \n\n priority?: ('high' | 'normal');\n\nAndroidConfig.restrictedPackageName\n-----------------------------------\n\nPackage name of the application where the registration tokens must match in order to receive the message.\n\n**Signature:** \n\n restrictedPackageName?: string;\n\nAndroidConfig.ttl\n-----------------\n\nTime-to-live duration of the message in milliseconds.\n\n**Signature:** \n\n ttl?: number;"]]