Slide 1

Slide 1 text

Push Notifications Think Michel Mongkhoy Renaud Mathieu

Slide 2

Slide 2 text

Design guide

Slide 3

Slide 3 text

Design guide How does it work?

Slide 4

Slide 4 text

Design guide Best practice How does it work?

Slide 5

Slide 5 text

Design Guide iOS

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

Design Guide Android

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

Notification is delivered instantly Lifecycle

Slide 20

Slide 20 text

delay_while_idle ? collapsed ? GCM stores 1 notification GCM stores 100 notifications notification is delivered instantly Notification is delivered instantly Lifecycle

Slide 21

Slide 21 text

delay_while_idle ? collapsed ? GCM stores 1 notification GCM stores 100 notifications notification is delivered instantly delay_while_idle ? GCM stores notifications Notification is delivered instantly Lifecycle

Slide 22

Slide 22 text

How does it work? iOS notifications

Slide 23

Slide 23 text

Apple Push Notification Service Accredited & encrypted IP connection Device APNS

Slide 24

Slide 24 text

Token APNS Server Get a token Device

Slide 25

Slide 25 text

Token APNS Server Push the token Device

Slide 26

Slide 26 text

Token Payload APNS Server Send notification info to APNS Device

Slide 27

Slide 27 text

Notification APNS Server Send notification to the device Device

Slide 28

Slide 28 text

Token Token Token Payload Notification APNS Server Apple Push Notification Service Device

Slide 29

Slide 29 text

How does it work? Android notifications

Slide 30

Slide 30 text

Google Cloud Messaging Allow 3rd-party application servers to send messages

Slide 31

Slide 31 text

Google Cloud Messaging Allow 3rd-party application servers to send messages No guarantee about delivery order

Slide 32

Slide 32 text

Google Cloud Messaging Allow 3rd-party application servers to send messages Use an existing connection for Google services No guarantee about delivery order

Slide 33

Slide 33 text

Google Cloud Messaging Register

Slide 34

Slide 34 text

Google Cloud Messaging Register Receive

Slide 35

Slide 35 text

Google Cloud Messaging Database Device GCM Server

Slide 36

Slide 36 text

Google Cloud Messaging Database Device GCM Server First Android device sends sender ID, application ID to GCM server for registration.

Slide 37

Slide 37 text

Google Cloud Messaging Database Device GCM Server First Android device sends sender ID, application ID to GCM server for registration. Upon successful registration GCM server issues registration ID to Android device.

Slide 38

Slide 38 text

Google Cloud Messaging Database Device GCM Server First Android device sends sender ID, application ID to GCM server for registration. Upon successful registration GCM server issues registration ID to Android device. Send the registration ID to your server.

Slide 39

Slide 39 text

Google Cloud Messaging Database Device GCM Server First Android device sends sender ID, application ID to GCM server for registration. Upon successful registration GCM server issues registration ID to Android device. Send the registration ID to your server. Your server will store the registration ID in the database for later usage.

Slide 40

Slide 40 text

Google Cloud Messaging

Slide 41

Slide 41 text

Google Cloud Messaging Database Device GCM Server

Slide 42

Slide 42 text

Google Cloud Messaging Database Device GCM Server Server sends a message to GCM server along with the device registration ID

Slide 43

Slide 43 text

Google Cloud Messaging Database Device GCM Server Server sends a message to GCM server along with the device registration ID GCM server will deliver that message to the respected mobile device using the device registration ID.

Slide 44

Slide 44 text

Device Google Cloud Messaging Android System Get notified when Intent happens Registers for certain intents App Broadcast Receiver GCM

Slide 45

Slide 45 text

Device Google Cloud Messaging Android System App Broadcast Receiver Notification Builder

Slide 46

Slide 46 text

APNS GCM Communication Streaming TCP Socket HTTPS (max: 1000 registration_id dans la requête) Format du contenu binaire (max: 256 bytes) JSON ou plain/text (max: 4kb) Sécurité certificat SSL créé depuis le provisioning portal afin de valider la connexion entre le serveur de notification et APNS API key générée depuis le compte Google à inclure dans le header de la requête Notifications (client) L’utilisateur doit accepter de recevoir du push. Aucune possibilité de customiser la notification native L’utilisateur peut activer/ désactiver les notifications pour une application. L’application est en charge de fournir une vue pour afficher une notification Notifications (serveur) Une option : date d’expiration APNS stocke une notification par application pour un appareil Plusieurs options : delay_while_idle, collapsed_key

Slide 47

Slide 47 text

Best practice Mobile notifications

Slide 48

Slide 48 text

Best practice Make notification optional

Slide 49

Slide 49 text

Best practice Make it personal Make notification optional

Slide 50

Slide 50 text

Best practice Make it personal Navigate to the right place Make notification optional

Slide 51

Slide 51 text

Best practice Make it personal Summarize your notifications Navigate to the right place Make notification optional