Push notifications

1,055 views

Published on

A little presentation about push notifications on BlackBerry 10

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,055
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Push notifications

  1. 1. Push notifications BlackBerry 10
  2. 2. Overview • What are push notifications? • Push Essentials Vs. Push Plus • Architecture • Message structure • Practical approach • NodeJS module
  3. 3. What are push notifications? • Messages • Send from a server to a device
  4. 4. Push Essentials Vs. Push Plus
  5. 5. What’s up with that? • Push Essentials • No status requests • Push Plus • Status requests
  6. 6. Architecture
  7. 7. Physical entities • Mobile device • Applicationserver • Push Initiator • Pushserver • Push Proxy Gateway
  8. 8. Identification • PIN-number • Application ID • Password • Content Provider ID • CPID
  9. 9. Procedure • Registration phase • Pushphase
  10. 10. Registration phase
  11. 11. Push phase
  12. 12. Message structure
  13. 13. PAP-standard --PMasdfglkjhqwert Content-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> --PMasdfglkjhqwert Content-Encoding: binary Content-Type: text/html Push-Message-ID: push.endare.com@1369139017071 This is an example --PMasdfglkjhqwert--
  14. 14. Practical approach
  15. 15. Registration @ BlackBerry https://www.blackberry.com/profile/?eventId=8121
  16. 16. Registration @ BlackBerry • Application ID • Password • Content Provider ID • CPID
  17. 17. Push Initiator • Push Service SDK • Written in…
  18. 18. Push Initiator • Push Service SDK • Written in…
  19. 19. NodeJS module • Easy to use • A few lines of code
  20. 20. NodeJS module Makes life a lot easier…
  21. 21. What is NodeJS • Awesome • Fast • Powerfull network applications • Perfect for real-time applications • JavaScript • Awesome
  22. 22. 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 });
  23. 23. npm • Node Package Manager npm install node-bb10 https://npmjs.org/package/node-bb10
  24. 24. Reminder: switch to momentics
  25. 25. Cascades
  26. 26. Thanks for your attention…

×