Push notifications are critical to craft engaging app experience and increase usage and user interest. Windows Azure Notification Hubs support multi-platform push with Windows, iOS, and Android, publish/subscribe routing to particular groups of users or devices, and low latency broadcast to millions of devices. Join us to learn how to use Notification Hubs to target millions of devices at once and single targeted users with just a few lines of code.
Easily provide push notification support for Windows, Windows Phone, iOS, and Android, easily send broadcast messages to all users or targeted messages to specific users, start free, scale up and down as needed.
11. Why Notification Hubs?
One-time set up
Register
Send Notification
GCM WNS
Notification Hub
App back-end
Android app Windows Store
app
12. Advantages of using Notification Hubs
No platform-specific protocols.
Avoid storing device information in the app back-end.
Broadcast
13. Sending notifications to specific
devices
Tags as interest groups.
You can use tags also for: Notification Hub
App back-end
Tag:”Beatles”Tag:”Wailers”
Tag:”Beatles”
14. Using templates for multi-platform
push
Registration.
Send notification.
Version independence.
Service Bus
Notification HubApp back-end
<toast>
<visual>
<binding template="ToastText01">
<text id="1">$(message)</text>
</binding>
</visual>
</toast>
{
aps: {
alert: “$(message)”
}
}
{ message: “Hello!” }
Hello!
Hello!
16. What Next?
Try it out. For Free.
Build what you want. Scale as you need. Full access with no strings
attached.
http://aka.ms/thecloud
Hello startups!
You have an ideas so brilliant it burns. BizSpark can help make it real.
http://aka.ms/JoinBizSpark or CONTACT ME!
17. Can't make it to San Francisco to attend Build this year? No worries, we've got you covered. Join us at the local
Microsoft office to watch the live stream of this year's keynote. We can't say much at this point, other than that the
content will be amazing.
We know it' during lunch, and we know how developers can get when they're not fed. Have no fears, food and
beverage will be provided. We'll also have a few giveaways including:
• Nokia Lumia 1020's
• Dell Venue 8 Pro Tablets
Register Now: http://aka.ms/build2014mn
21. //instantiate a new NotificationHub instance
NotificationHub hub = new NotificationHub("<hub name>", "<connection string>",
context);
//get the gcm id
GoogleCloudMessaging gcm = GoogleCloudMessaging.getInstance(context);
String gcmid = gcm.register(SENDER_ID);
//register with the NotificationHub
NativeRegistration r = hub.register(gcmid);
22. //instantiate a new instance of NotificationHubClient
var hubClient =
NotificationHubClient.CreateClientFromConnectionString("<connection string>",
"<hub name>");
//create the json payload for the notification
var payload = "{ "data" : {"msg":"Hello from Windows Azure!"}}";
//send notification via gcm
hubClient.SendGcmNativeNotificationAsync(payload);