Push notifications

22
Push Notifications 11/27/2014

Transcript of Push notifications

Page 1: Push notifications

Push Notifications

11/27/2014

Page 2: Push notifications

What is a Push Notification

11/27/2014 2

• Push notification is the delivery of

information from a software application to a

computing device, without a specific request

from the client (device).

Page 3: Push notifications

11/27/2014 3

• Unlike pull notifications, in which the client

must request information from a server, push

notifications originate from a server itself.

Page 4: Push notifications

11/27/2014 4

As entrepreneur Ariel Seidman writes,

“For the first time in human history, you can tap

almost two billion people on the shoulder…

Seamlessly…!!”

Page 5: Push notifications

11/27/2014 5

Page 6: Push notifications

11/27/2014 6

How is notification sent??

• Step 1 : Notification is generated by the

server on which the app is running.

Page 7: Push notifications

11/27/2014 7

How is notification sent??

• Step 2 : App Server notifies ‘notification

service provider’ of the specific OS.

Page 8: Push notifications

11/27/2014 8

• Step 3 : Notification service provider of the

specific OS delivers the notification received

from the server to the device.

How is notification sent??

Page 9: Push notifications

11/27/2014 9

How does it work??

Push Notification from 1 provider to 1 device

Page 10: Push notifications

11/27/2014 10

How does it work??

Push Notification from multiple provider to multiple devices

Page 11: Push notifications

11/27/2014 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.

Page 12: Push notifications

11/27/2014 12

Page 13: Push notifications

11/27/2014 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.

Page 14: Push notifications

11/27/2014 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.

Page 15: Push notifications

11/27/2014 15

Architecture Overview

Device-to-Service Connection Trust

Page 16: Push notifications

11/27/2014 16

Architecture Overview

Provider-to-Service Connection Trust

Page 17: Push notifications

11/27/2014 17

Architecture Overview

Token Generation and Dispersal

Page 18: Push notifications

11/27/2014 18

Architecture Overview

Sharing Device Token Overview

Page 19: Push notifications

11/27/2014 19

Architecture Overview

Token Notification

Page 20: Push notifications

11/27/2014 20

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.

Page 21: Push notifications

11/27/2014 21

Quick Question..!!

Does the app for which the notification is

being sent needs to be ON or run ACTIVELY?

Page 22: Push notifications