Windows Phone 8 Push Notification :: Can I communicate with the same channel for Toast and Tile?

Below is the code for WP8 push notification.

HttpNotificationChannel pushChannel = new HttpNotificationChannel(channelName); // Register for all the events before attempting to open the channel. pushChannel.ChannelUriUpdated += new EventHandler<NotificationChannelUriEventArgs>(PushChannel_ChannelUriUpdated); pushChannel.ErrorOccurred += new EventHandler<NotificationChannelErrorEventArgs>(PushChannel_ErrorOccurred); // Register for this notification only if you need to receive the notifications while your application is running. pushChannel.ShellToastNotificationReceived += new EventHandler<NotificationEventArgs>(PushChannel_ShellToastNotificationReceived); pushChannel.Open(); // Bind this new channel for toast events. pushChannel.BindToShellToast(); pushChannel.BindToShellTile(); 

As you can see in the above code, I associate pushChannel with shellToast, as well as shellTile . I want to know if this is really or not? since I don't have a msdn document regarding this. If possible, and the server will send any notifications, will it be displayed correctly? Please provide valuable information about this.

+4
source share
1 answer

It is possible, and it is the right way to do it. One application, one channel, no matter how many types of push notifications you use.

+4
source

Source: https://habr.com/ru/post/1493114/


All Articles