Share via


ApsProperties Class

Definition

The "aps" property contains the definition of a notification targeting Apple Push Notification Service (APNS). It is intended to be used from the ApplePushMessage class.

[System.Serializable]
public class ApsProperties : System.Collections.Generic.Dictionary<string,object>
[<System.Serializable>]
type ApsProperties = class
    inherit Dictionary<string, obj>
Public Class ApsProperties
Inherits Dictionary(Of String, Object)
Inheritance
ApsProperties
Attributes

Constructors

ApsProperties()

Initializes a new instance of the ApsProperties class.

ApsProperties(SerializationInfo, StreamingContext)

Initializes a new instance of the ApsProperties class with the specified serialization information and streaming context.

Properties

Alert

The alert message as a single string. For more complex alert message options, please use AlertProperties.

AlertProperties

The alert message as a dictionary with additional properties describing the alert such as localization information, which image to display, etc. If the alert is simply a string then please use Alert.

Badge

The number to display as the badge of the application icon. If this property is absent, the badge is not changed. To remove the badge, set the value of this property to 0.

ContentAvailable

Provide this key with a value of 1 to indicate that new content is available. This is used to support Newsstand apps and background content downloads.

Sound

The name of a sound file in the application bundle. The sound in this file is played as an alert. If the sound file doesn’t exist or default is specified as the value, the default alert sound is played. The audio must be in one of the audio data formats that are compatible with system sounds;

Applies to