NotificationHubClient.SendAppleNativeNotificationAsync Method

Definition

Overloads

SendAppleNativeNotificationAsync(String, String)

Asynchronously sends an Apple native notification to a tag expression (a single tag "tag" is a valid tag expression). To specify an expiry, use the SendNotificationAsync(Notification) method.

SendAppleNativeNotificationAsync(String, IEnumerable<String>)

Asynchronously sends an Apple native notification to a non-empty set of tags (maximum 20). This is equivalent to a tagged expression with boolean ORs ("||"). To specify an expiry, use the SendNotificationAsync(Notification) method.

SendAppleNativeNotificationAsync(String)

Sends an Apple native notification. To specify an expiry, use the SendNotificationAsync(Notification) method.

SendAppleNativeNotificationAsync(String, String)

Asynchronously sends an Apple native notification to a tag expression (a single tag "tag" is a valid tag expression). To specify an expiry, use the SendNotificationAsync(Notification) method.

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendAppleNativeNotificationAsync (string jsonPayload, string tagExpression);
member this.SendAppleNativeNotificationAsync : string * string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendAppleNativeNotificationAsync (jsonPayload As String, tagExpression As String) As Task(Of NotificationOutcome)

Parameters

jsonPayload
String

This is a valid Apple Push Notification Service (APNS) payload. Documentation on the APNS payload can be found here.

tagExpression
String

A tag expression is any boolean expression constructed using the logical operators AND (&&), OR (||), NOT (!), and round parentheses. For example: (A || B) && !C. If an expression uses only ORs, it can contain at most 20 tags. Other expressions are limited to 6 tags. Note that a single tag "A" is a valid expression.

Returns

NotificationOutcome which describes the result of the Send operation.

SendAppleNativeNotificationAsync(String, IEnumerable<String>)

Asynchronously sends an Apple native notification to a non-empty set of tags (maximum 20). This is equivalent to a tagged expression with boolean ORs ("||"). To specify an expiry, use the SendNotificationAsync(Notification) method.

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendAppleNativeNotificationAsync (string jsonPayload, System.Collections.Generic.IEnumerable<string> tags);
member this.SendAppleNativeNotificationAsync : string * seq<string> -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendAppleNativeNotificationAsync (jsonPayload As String, tags As IEnumerable(Of String)) As Task(Of NotificationOutcome)

Parameters

jsonPayload
String

This is a valid Apple Push Notification Service (APNS) payload. Documentation on the APNS payload can be found here.

tags
IEnumerable<String>

A non-empty set of tags (maximum 20 tags). Each string in the set can contain a single tag.

Returns

NotificationOutcome which describes the result of the Send operation.

SendAppleNativeNotificationAsync(String)

Sends an Apple native notification. To specify an expiry, use the SendNotificationAsync(Notification) method.

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendAppleNativeNotificationAsync (string jsonPayload);
member this.SendAppleNativeNotificationAsync : string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendAppleNativeNotificationAsync (jsonPayload As String) As Task(Of NotificationOutcome)

Parameters

jsonPayload
String

This is a valid Apple Push Notification Service (APNS) payload. Documentation on the APNS payload can be found here.

Returns

NotificationOutcome which describes the result of the Send operation.

Applies to