The following forum(s) are migrating to a new home on Microsoft Q&A (Preview): Developing Universal Windows apps!

Ask new questions on Microsoft Q&A (Preview).
Interact with existing posts until December 13, 2019, after which content will be closed to all new and existing posts.

Learn More

 none
[UWP][Desktop Bridge] Push notifications RRS feed

  • Question

  • Hi!
    I want to integrate a push notifications to the my converted application.  But I didn't find anything about it :(
    I know that push notification supports only in UWP applications (converted). 
    I do it like in simple UWP application. 

    var channel = await Windows.Networking.PushNotifications.PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync();
    if (channel?.Uri != null)
    {
       using (var hub = new NotificationHub(previousInformation.HubName, previousInformation.ListenAccessString))
       {
          await hub.UnregisterAllAsync(channel.Uri).ConfigureAwait(false);
       }
    }
    But haven't namespaces for this. Nuget "WindowsAzure.Messaging.Managed" doesn't supported because main application is WPF.

    Thanks!


    Monday, January 23, 2017 4:36 PM

Answers

All replies