SALES: 1-800-867-1380

NotificationHubClient.SendGcmNativeNotificationAsync Method (String, String)


Asynchronously sends GCM native notification to a tag expression (a single tag "tag" is a valid tag expression).

Namespace:   Microsoft.ServiceBus.Notifications
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

public Task<NotificationOutcome> SendGcmNativeNotificationAsync(
	string jsonPayload,
	string tagExpression


Type: System.String

The JSON payload.

Type: System.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.

Return Value

Type: System.Threading.Tasks.Task<NotificationOutcome>

The task that completes the asynchronous operation.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft