Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Think Push Notification

Think Push Notification

Push notifications are more effective than you think.
Businesses are facing an app engagement crisis. To overcome this, brands are increasingly turning to tactics such as push notifications to re-engage lapsed users.
This talk is about best practices takeaways and push notification strategy here at Viadeo

Renaud MATHIEU

September 01, 2016
Tweet

More Decks by Renaud MATHIEU

Other Decks in Programming

Transcript

  1. delay_while_idle ? collapsed ? GCM stores 1 notification GCM stores

    100 notifications notification is delivered instantly Notification is delivered instantly Lifecycle
  2. 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
  3. Google Cloud Messaging Allow 3rd-party application servers to send messages

    Use an existing connection for Google services No guarantee about delivery order
  4. Google Cloud Messaging Database Device GCM Server First Android device

    sends sender ID, application ID to GCM server for registration.
  5. 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.
  6. 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.
  7. 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.
  8. Google Cloud Messaging Database Device GCM Server Server sends a

    message to GCM server along with the device registration ID
  9. 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.
  10. Device Google Cloud Messaging Android System Get notified when Intent

    happens Registers for certain intents App Broadcast Receiver GCM
  11. 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