ApplePushMessage Class

 

The ApplePushMessage helps generating a notification payload targeting Apple Push Notification Service. Notifications can be sent using the PushClient class which is available from the ApiServices class.

Namespace:   Microsoft.WindowsAzure.Mobile.Service
Assembly:  Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)

System.Object
  System.Collections.Generic.Dictionary(Of TKey, TValue)
    Microsoft.WindowsAzure.Mobile.Service.ApplePushMessage

<SerializableAttribute>
Public Class ApplePushMessage
	Inherits Dictionary(Of String, Object)
	Implements IPushMessage

NameDescription
System_CAPS_pubmethodApplePushMessage()

Initializes a new instance of the ApplePushMessage class enabling creation a notification message targeting Apple Push Notification Service. Set the appropriate properties on the message and submit through the PushClient.

System_CAPS_protmethodApplePushMessage(SerializationInfo, StreamingContext)

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

System_CAPS_pubmethodApplePushMessage(String, Nullable(Of TimeSpan))

Initializes a new instance of the ApplePushMessage class with a given alert message and an optional expiration of the notification.

NameDescription
System_CAPS_pubpropertyAps

Gets the ApsProperties for this ApplePushMessage.

System_CAPS_pubpropertyComparer
System_CAPS_pubpropertyCount
System_CAPS_pubpropertyExpiration

Sets or gets the lifetime of the notification. At the end of the lifetime, the notification is no longer valid and can be discarded. If this value is non-null, APNs stores the notification and tries to deliver the notification at least once. Specify null to indicate that the notification expires immediately and that APNs should not store the notification at all.

System_CAPS_pubpropertyItem(TKey)
System_CAPS_pubpropertyJsonPayload

As an alternative to building the notification by initializing the ApplePushMessage directly, it is possible to provide a complete JSON representation which will be sent to the Notification Hub unaltered.

System_CAPS_pubpropertyKeys
System_CAPS_pubpropertyValues

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: