NotificationHubClient.SendGcmNativeNotificationAsync
Method
Definition
Overloads
| SendGcmNativeNotificationAsync(String) |
Sends Google Cloud Messaging (GCM) native notification. |
| SendGcmNativeNotificationAsync(String, IEnumerable<String>) |
Sends a GCM native notification to a non-empty set of tags (max 20). This is equivalent to a tag expression with boolean ORs ("||"). |
| SendGcmNativeNotificationAsync(String, String) |
Sends GCM native notification to a tag expression (a single tag "tag" is a valid tag expression). |
SendGcmNativeNotificationAsync(String)
Sends Google Cloud Messaging (GCM) native notification.
public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendGcmNativeNotificationAsync (string jsonPayload);
- jsonPayload
- String
The JSON payload. Documentation on proper formatting of a GCM message can be found here.
NotificationOutcome which describes the result of the Send operation.
SendGcmNativeNotificationAsync(String, IEnumerable<String>)
Sends a GCM native notification to a non-empty set of tags (max 20). This is equivalent to a tag expression with boolean ORs ("||").
public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendGcmNativeNotificationAsync (string jsonPayload, System.Collections.Generic.IEnumerable<string> tags);
- jsonPayload
- String
The JSON payload. Documentation on proper formatting of a GCM message 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.
NotificationOutcome which describes the result of the Send operation.
SendGcmNativeNotificationAsync(String, String)
Sends GCM native notification to a tag expression (a single tag "tag" is a valid tag expression).
public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendGcmNativeNotificationAsync (string jsonPayload, string tagExpression);
- jsonPayload
- String
The JSON payload. Documentation on proper formatting of a GCM message 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.
NotificationOutcome which describes the result of the Send operation.