26
Push notifications BlackBerry 10

Push notifications

Embed Size (px)

DESCRIPTION

A little presentation about push notifications on BlackBerry 10

Citation preview

Page 1: Push notifications

Push notificationsBlackBerry 10

Page 2: Push notifications

Overview

• What are push notifications?

• Push Essentials Vs. Push Plus

• Architecture

• Message structure

• Practical approach

• NodeJS module

Page 3: Push notifications

What are push notifications?

• Messages

• Send from a server to a device

Page 4: Push notifications

Push Essentials Vs. Push Plus

Page 5: Push notifications

What’s up with that?

• Push Essentials• No status requests

• Push Plus• Status requests

Page 6: Push notifications

Architecture

Page 7: Push notifications

Physical entities

• Mobile device

• Applicationserver• Push Initiator

• Pushserver• Push Proxy Gateway

Page 8: Push notifications

Identification

• PIN-number

• Application ID

• Password

• Content Provider ID• CPID

Page 9: Push notifications

Procedure

• Registration phase

• Pushphase

Page 10: Push notifications

Registration phase

Page 11: Push notifications

Push phase

Page 12: Push notifications

Message structure

Page 13: Push notifications

PAP-standard--PMasdfglkjhqwertContent-Type: application/xml; charset=UTF-8

<?xml version="1.0"?><!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.1//EN" "http://www.openmobilealliance.org/tech/DTD/pap_2.1.dtd"><pap> <push-message push-id="push.endare.com@1369139017071" source-reference="3021-50568ede737MM608a91m02ic289652m85r" deliver-before-timestamp="2013-05-21T14:27:48Z"> <address address-value="7F308D" /> <quality-of-service delivery-method="unconfirmed" /> </push-message></pap>--PMasdfglkjhqwertContent-Encoding: binaryContent-Type: text/htmlPush-Message-ID: push.endare.com@1369139017071

This is an example

--PMasdfglkjhqwert--

Page 14: Push notifications

Practical approach

Page 15: Push notifications

Registration @ BlackBerry

https://www.blackberry.com/profile/?eventId=8121

Page 16: Push notifications

Registration @ BlackBerry

• Application ID

• Password

• Content Provider ID• CPID

Page 17: Push notifications

Push Initiator

• Push Service SDK

• Written in…

Page 18: Push notifications

Push Initiator

• Push Service SDK

• Written in…

Page 19: Push notifications

NodeJS module

• Easy to use

• A few lines of code

Page 20: Push notifications

NodeJS moduleMakes life a lot easier…

Page 21: Push notifications

What is NodeJS

• Awesome

• Fast

• Powerfull network applications

• Perfect for real-time applications

• JavaScript

• Awesome

Page 22: Push notifications

How to use?var pushInitiator = new PushInitiator(applicationId, password, cpid);

var message = new PushMessage(id, “Hello World!”);message.addRecipient(123456); // PIN number

pushInitiator.push(message, function(err, result) { // herpa derp});

Page 23: Push notifications

npm

• Node Package Manager

npm install node-bb10

https://npmjs.org/package/node-bb10

Page 24: Push notifications

Reminder: switch to momentics

Page 25: Push notifications

Cascades

Page 26: Push notifications

Thanks for your attention…