Push Notifications 
11/27/2014
What is a Push Notification 
• Push notification is the delivery of 
information from a software application to a 
computing device, without a specific request 
from the client (device). 
11/27/2014 2
• Unlike pull notifications, in which the client 
must request information from a server, push 
notifications originate from a server itself. 
11/27/2014 3
As entrepreneur Ariel Seidman writes, 
“For the first time in human history, you can tap 
almost two billion people on the shoulder… 
Seamlessly…!!” 
11/27/2014 4
11/27/2014 5
How is notification sent?? 
• Step 1 : Notification is generated by the 
server on which the app is running. 
11/27/2014 6
How is notification sent?? 
• Step 2 : App Server notifies ‘notification 
service provider’ of the specific OS. 
11/27/2014 7
How is notification sent?? 
• Step 3 : Notification service provider of the 
specific OS delivers the notification received 
from the server to the device. 
11/27/2014 8
How does it work?? 
Push Notification from 1 provider to 1 device 
11/27/2014 9
How does it work?? 
Push Notification from multiple provider to multiple devices 
11/27/2014 10
Architecture Overview 
APNs – Apple Push Notification service 
• Apple Push Notification service is the 
centerpiece of the push notifications feature 
for propagating information to iOS and OS X 
devices. 
11/27/2014 11
11/27/2014 12
Architecture Overview 
• APNs performs a store-and-forward function. 
• If APNs attempts to deliver a notification but the 
device is offline, the notification is stored for a 
limited period of time, and delivered to the device 
when it becomes available. 
11/27/2014 13
Architecture Overview 
• Only one recent notification for an application is stored. 
If multiple notifications are sent while the device is 
offline, each new notification causes the prior 
notification to be discarded. 
• If the device remains offline for a long time, any 
notifications that were being stored for it are discarded. 
11/27/2014 14
Architecture Overview 
Device-to-Service Connection Trust 
11/27/2014 15
Architecture Overview 
Provider-to-Service Connection Trust 
11/27/2014 16
Architecture Overview 
Token Generation and Dispersal 
11/27/2014 17
Architecture Overview 
Sharing Device Token Overview 
11/27/2014 18
Architecture Overview 
Token Notification 
11/27/2014 19
GCM 
Google Cloud Messaging for Android (GCM) is a free 
service that helps developers send data from 
servers to their Android applications on Android 
devices. 
11/27/2014 20
Quick Question..!! 
Does the app for which the notification is 
being sent needs to be ON or run ACTIVELY? 
11/27/2014 21
Push notifications

Push notifications

  • 1.
  • 2.
    What is aPush Notification • Push notification is the delivery of information from a software application to a computing device, without a specific request from the client (device). 11/27/2014 2
  • 3.
    • Unlike pullnotifications, in which the client must request information from a server, push notifications originate from a server itself. 11/27/2014 3
  • 4.
    As entrepreneur ArielSeidman writes, “For the first time in human history, you can tap almost two billion people on the shoulder… Seamlessly…!!” 11/27/2014 4
  • 5.
  • 6.
    How is notificationsent?? • Step 1 : Notification is generated by the server on which the app is running. 11/27/2014 6
  • 7.
    How is notificationsent?? • Step 2 : App Server notifies ‘notification service provider’ of the specific OS. 11/27/2014 7
  • 8.
    How is notificationsent?? • Step 3 : Notification service provider of the specific OS delivers the notification received from the server to the device. 11/27/2014 8
  • 9.
    How does itwork?? Push Notification from 1 provider to 1 device 11/27/2014 9
  • 10.
    How does itwork?? Push Notification from multiple provider to multiple devices 11/27/2014 10
  • 11.
    Architecture Overview APNs– Apple Push Notification service • Apple Push Notification service is the centerpiece of the push notifications feature for propagating information to iOS and OS X devices. 11/27/2014 11
  • 12.
  • 13.
    Architecture Overview •APNs performs a store-and-forward function. • If APNs attempts to deliver a notification but the device is offline, the notification is stored for a limited period of time, and delivered to the device when it becomes available. 11/27/2014 13
  • 14.
    Architecture Overview •Only one recent notification for an application is stored. If multiple notifications are sent while the device is offline, each new notification causes the prior notification to be discarded. • If the device remains offline for a long time, any notifications that were being stored for it are discarded. 11/27/2014 14
  • 15.
    Architecture Overview Device-to-ServiceConnection Trust 11/27/2014 15
  • 16.
    Architecture Overview Provider-to-ServiceConnection Trust 11/27/2014 16
  • 17.
    Architecture Overview TokenGeneration and Dispersal 11/27/2014 17
  • 18.
    Architecture Overview SharingDevice Token Overview 11/27/2014 18
  • 19.
    Architecture Overview TokenNotification 11/27/2014 19
  • 20.
    GCM Google CloudMessaging for Android (GCM) is a free service that helps developers send data from servers to their Android applications on Android devices. 11/27/2014 20
  • 21.
    Quick Question..!! Doesthe app for which the notification is being sent needs to be ON or run ACTIVELY? 11/27/2014 21