FirebaseAdmin. Messaging. Aps
Represents theaps dictionary that is part of every APNs message.
Summary
Properties | |
|---|---|
Alert | Gets or sets an advanced alert configuration to be included in the message. |
AlertString | stringGets or sets the alert text to be included in the message. |
Badge | intGets or sets the badge to be displayed with the message. |
Category | stringGets or sets the type of the notification. |
ContentAvailable | boolGets or sets a value indicating whether to configure a background update notification. |
CriticalSound | Gets or sets the critical alert sound to be played with the message. |
CustomData | IDictionary< string, object >Gets or sets a collection of arbitrary key-value data to be included in the aps dictionary. |
MutableContent | boolGets or sets a value indicating whether to include the mutable-content property in the message. |
Sound | stringGets or sets the name of a sound file in your app's main bundle or in the Library/Sounds folder of your app's container directory. |
ThreadId | stringGets or sets the app-specific identifier for grouping notifications. |
Properties
Alert
ApsAlert Alert
Gets or sets an advanced alert configuration to be included in the message.
It is an error to set bothAlert andAlertString properties together.
AlertString
string AlertString
Gets or sets the alert text to be included in the message.
To specify a more advanced alert configuration, use theAlert property instead. It is an error to set bothAlert andAlertString properties together.
Badge
int Badge
Gets or sets the badge to be displayed with the message.
Set to 0 to remove the badge. When not specified, the badge will remain unchanged.
Category
string Category
Gets or sets the type of the notification.
ContentAvailable
bool ContentAvailable
Gets or sets a value indicating whether to configure a background update notification.
CriticalSound
CriticalSound CriticalSound
Gets or sets the critical alert sound to be played with the message.
It is an error to set bothSound andCriticalSound properties together.
CustomData
IDictionary< string, object > CustomData
Gets or sets a collection of arbitrary key-value data to be included in theaps dictionary.
This is exposed as an IDictionary{TKey, TValue} to support correct deserialization of custom properties.
MutableContent
bool MutableContent
Gets or sets a value indicating whether to include themutable-content property in the message.
When set, this property allows clients to modify the notification via app extensions.
Sound
string Sound
Gets or sets the name of a sound file in your app's main bundle or in theLibrary/Sounds folder of your app's container directory.
Specify the stringdefault to play the system sound. It is an error to set bothSound andCriticalSound properties together.
ThreadId
string ThreadId
Gets or sets the app-specific identifier for grouping notifications.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-03-24 UTC.