Created
May 16, 2015 16:09
-
-
Save Budincsevity/24a2914d40970f1477f8 to your computer and use it in GitHub Desktop.
Send notification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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