QuestionQ33
Connect to and consume Azure services and third-party servicesYou develop a news and blog content app for Windows devices.
A notification must reach a user's device when a new article is available to view.
You need to implement push notifications. How should you complete the code segment?
Select
string notificationHubName = "contoso_hub"; string notificationHubConnection = "connection_string"; hub = . (notificationHubConnection, notificationHubName); string windowsToastPayload = @"<toast><visual><binding template=""ToastText01""><text id=""1"">" + @"New item to view" + @"</text></binding></visual></toast>"; try { var result = await hub.(windowsToastPayload); ... } catch (System.Exception ex) { ... } ...
Community Discussion