4. Overview
Push Notifications offer developers a way to
send timely information relating to their
applications even when they are not running
Push notifications are delivered through
platform-specific infrastructures called Platform
Notification Systems (PNS)
+Windows has the unique ability to provide the
end user glanceable access to the information
they care most about, via Live Tiles
Back-end
PNS
Device
1
2
3
4
Retrieve PNS Handle
Store PNS Handle
Send Notification
Send to Device
11. 1. Create the notification hub – Azure
2. Get app SID and Secret – Dev Center (Windows or Windows Phone)
3. Configure hub
4. Create client app – Visual Studio
5. Create app backend
Demo walk-through
21. What if we want more granular control over notifications?
If we want to push notifications only to people who are subscribed to a
specific category, we use tags.
App
Backend
Combine tags with AND (&&), OR (||), NOT (!) and parentheses.
Tag expressions are limited to 20 tags if they contain only ORs; otherwise they are limited to 6 tags
More channels
string[] tagsToSubscribeTo = { "phone", "news" };
await hub.RegisterNativeAsync(channel.Uri, tagsToSubscribeTo);
await hub.SendWindowsNativeNotificationAsync(toast, "phone");
await hub.SendWindowsNativeNotificationAsync(toast, "phone && news");
await hub.SendWindowsNativeNotificationAsync(toast, "phone || news");
22. Be polite! Let users disable notifications.
Or they will disable you (your app)
;-)
24. Notification Hub
Azure
MSDN
Windows Store (WinRT) tutorial
Windows Phone (Silverlight) tutorial
Android tutorial
iOS tutorial
Kindle tutorial
Windows toast and tile template catalogs
Toast template catalog
Tile template catalog
Resources
25.
26. Grazie a tutti per la partecipazione
Riceverete il link per il download a slide e demo via email nei
prossimi giorni
Per contattarmi
Grazie e Q&A
Luca Di Fino
dev.luke2375@live.it
@luke2375
luke2375.wordpress.com
#NotificationHub #dotnetcampus @luke2375 @dotnecampus