Windows News app uses Notification Hubs
Platform Notification Service App back-end Client app
APNsWNS Notification Hub App back-end iOS app Windows Store app
var hub = new NotificationHub(“ ", " "); var channel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync(); await hub.RegisterNativeAsync(channel.Uri);
var hubClient = NotificationHubClient.CreateClientFromConnectionString(" ", “ "); var toast "; hubClient.SendWindowsNativeNotificationAsync(toast);
Notification Hub App back-end Tag:”Beatles”Tag:”Wailers” Tag:”Beatles”
Notification Hub App back-end
Service Bus Notification Hub App back-end $(message) { aps: { alert: “$(message)” } { message: “Hello!” } Hello!
Service Bus Notification Hub App back-end $(tempF) { aps: { alert: “$(tempC)” } { tempC: “23”, tempF: “73” } 73 23