Slide 1

Slide 1 text

Windows Azure Push Notifications #ISKAPUSH Edwin van Wijk Roy Cornelissen

Slide 2

Slide 2 text

Windows Azure Push Notifications 2 Push Notifications Oplossingen Windows Azure Uitdagingen Demo

Slide 3

Slide 3 text

Introductie Windows Azure Push Notifications 3 IT Architect bij Info Support Architectuur, SOA, EAI, ESB, .NET, WCF, WF, Windows Azure Trekker Windows Azure Focusgroup Edwin van Wijk [email protected]

Slide 4

Slide 4 text

Introductie Windows Azure Push Notifications 4 Architectuur, SOA, EAI, ESB, .NET, NServiceBus, Xamarin Trekker Mobile Development Focusgroup Dutch Mobile .NET developers group Roy Cornelissen [email protected] IT Architect bij Info Support

Slide 5

Slide 5 text

Windows Azure Push Notifications 6 Wat zijn Push Notifications?

Slide 6

Slide 6 text

Wat zijn Push Notifications? Windows Azure Push Notifications 7

Slide 7

Slide 7 text

Wat zijn Push Notifications? Windows Azure Push Notifications 8

Slide 8

Slide 8 text

Push Notifications infrastructuur Windows Azure Push Notifications 9 1. Haal DeviceHandle op 2. Registreer DeviceHandle in de backend 3. Stuur bericht met DeviceHandle 4. Stuur push-notification naar device Back-end Device PNS (APNS / WNS / GCM) 1 2 3 4

Slide 9

Slide 9 text

Uitdagingen Windows Azure Push Notifications 10 Pub/Sub Routering Interesses koppelen aan device handles Schaalbaarheid Bijhouden device tokens Broadcasts Platform specifieke API

Slide 10

Slide 10 text

Mogelijke oplossing Windows Azure Push Notifications 11 Apple Android Windows Backend Device# Scalability? PushSharp library PushSharp github.com/redth/pushsharp

Slide 11

Slide 11 text

Oplossingen m.b.v. Azure Windows Azure Push Notifications 12 Mobile Services Push Notifications Servicebus Notification Hubs

Slide 12

Slide 12 text

Mobile Services Push Notifications Windows Azure Push Notifications 13

Slide 13

Slide 13 text

Servicebus Push Notification Hubs Windows Azure Push Notifications 14 Multi- platform iOS & WinRT Schaalbaar Pub/Sub Routering Tags Preview sinds januari 2013 (Android en Windows Phone later) Schatting GA: zomer 2013

Slide 14

Slide 14 text

Servicebus Push Notification Hubs infrastructuur Windows Azure Push Notifications 15 1. Haal DeviceHandle op 2. Registreer DeviceHandle in Hub 3. Stuur bericht naar Hub 4. Stuur bericht naar PNS 5. Stuur push-notification naar device Back-end Device PNS (APNS / WNS / GCM) 1 Push Notification Hub 2 3 4 5

Slide 15

Slide 15 text

Beheer van registraties Windows Azure Push Notifications 16 Refresh Create 90 dagen geldig Exists Update Get Delete

Slide 16

Slide 16 text

Beheer van registraties Windows Azure Push Notifications 17 Client Back-end - Alleen update mogelijk als de app draait + Eenvoudige back-end Back-end Device Push Notification Hub Back-end Device Provide PNS Handle Push Notification Hub + Update mogelijk als de app niet draait (b.v. meerdere devices en tags) - Veel zelf doen in Back-end

Slide 17

Slide 17 text

Notification formaat Windows Azure Push Notifications 18 Native Registratie zonder template Notification bevat body in platform specifiek formaat CreateNativeRegistration(…) SendWindowsNativeNotification(…) SendAppleNativeNotification(…) Templates Registratie met een template Notification bevat platform onafhankelijke properties CreateTemplateRegistration(…) SendTemplateNotification(…)

Slide 18

Slide 18 text

Templates Windows Azure Push Notifications 19 $(msg) { "aps": { "alert": "$(msg)" } } WNS APNS hubClient.SendTemplateNotification( new Dictionary { { "msg", "Hello world" } }, null, null );

Slide 19

Slide 19 text

Pub/Sub routering m.b.v. Tags Windows Azure Push Notifications 20 Back-end Device 1 Device 2 Push Notification Hub Technologie Sport, Economie a b c a b c b Sport Technologie PNS niveau is verdwenen uit het plaatje

Slide 20

Slide 20 text

Boodschappenlijst Windows Store App Windows Azure Push Notifications 21 Service Bus .NET Preview SDK NuGet 0.1.5.0 (07-05-2013) Service Bus WinRT Managed SDK Windows Store Development Account

Slide 21

Slide 21 text

Windows Store App registreren Windows Azure Push Notifications 22

Slide 22

Slide 22 text

Windows Store App : toasts activeren Windows Azure Push Notifications 23 Package.appxmanifest

Slide 23

Slide 23 text

Security : Shared Access Keys (SAS) Windows Azure Push Notifications 24 Listen Send Manage

Slide 24

Slide 24 text

Boodschappenlijst iOS App Windows Azure Push Notifications 25 Service Bus .NET Preview SDK Service Bus iOS SDK Apple Developer Account

Slide 25

Slide 25 text

iOS App registreren Windows Azure Push Notifications 26 .pfx

Slide 26

Slide 26 text

iOS app bouwen Download iOS WindowsAzureMessaging library – Native library – Objective-C header files App/device registeren in Azure Push Notification Hub Windows Azure Push Notifications 27

Slide 27

Slide 27 text

iOS app bouwen Windows Azure Push Notifications 28 Azure Push Notification Hub iDevice APNS 1. registerForRemoteNotification 2. didRegisterForRemoteNotificationsWithDeviceToken lib Application back end 3. createTemplateRegistrationWithName (connectionstring + deviceToken + listenAccessSecret) 4. SendTemplateNotification 5. didReceiveRemoteNotification

Slide 28

Slide 28 text

Windows Azure Push Notifications 29 Demo

Slide 29

Slide 29 text

Objective-C

Slide 30

Slide 30 text

C#, yeah baby!

Slide 31

Slide 31 text

Bouwen met Xamarin.iOS C# language binding voor WindowsAzureMessaging C# library toevoegen in iOS app Bouwen in Xamarin Studio of Visual Studio

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

Windows Azure Push Notifications 34 Demo

Slide 34

Slide 34 text

Monitoring op de portal Windows Azure Push Notifications 35

Slide 35

Slide 35 text

Windows Azure Push Notifications 36 Vragen

Slide 36

Slide 36 text

Bedankt voor de aandacht!