Skip to content

Instantly share code, notes, and snippets.

@Budincsevity
Created May 16, 2015 16:09
Show Gist options
  • Save Budincsevity/24a2914d40970f1477f8 to your computer and use it in GitHub Desktop.
Save Budincsevity/24a2914d40970f1477f8 to your computer and use it in GitHub Desktop.
Send notification
var hubClient =
NotificationHubClient.CreateClientFromConnectionString("<connection string>", "<hub name>");
//JSON payload
var payload = "{ \"data\" : {\"msg\":\"Hello\"}}";
var tags = new List<string>(){ "tags" };
//Send push notification just to selected tags
hubClient.SendGcmNativeNotificationAsync(payload, tags);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment