Registration of two templates with a notification center and sending notifications

Motivation : - I want to send a notification about Toast and Tile at the same time to my Windows Phone 8.1 application.

=> I use the template function with the notification center to send localized notifications.

Everything works fine When I register only Toast / Tile templates (one at a time) with Notificationhub Client.

await _hubClient.CreateWindowsTemplateRegistrationAsync(model.ChannelUri, toasttemplate, tags);

Problem: - But when I register both Toast and Tile templates with a hub, then in this case it cannot send both notifications. No error indication.

So, does anyone know how to register and send both notifications at the same time? Any pointer or help is really appreciated.

+4
source share
1 answer

I submitted my answer to Microsoft forms. Get a hint from there, it works great. Link: - Microsoft Notification Forum

This is a little less clear, but I am adding some things in support of the answer to the forum.

  • Registration of templates will be differentiated with reference to the set of tags with which they are registered. For example, suppose that you are registering a set of identical tags both with tiles and with a toast Registering a notification template, in which case the Notification Center will not be able to distinguish which type of notification you are sending.

: - i.e. for toast = "toast" and for tile = "tile" . , Tags Expression Toast Tile -. : - tag1 "tag1&&toast". Tile "tag1&&tile".

, . . .

, -.

+6

All Articles