Top Banner
PUSH PARA 1KK NO AZURE williamsrodz
27

Introdução ao envio de notificações via Push com Azure Notification Hubs

Jan 24, 2018

Download

Mobile

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Introdução ao envio de notificações via Push com Azure Notification Hubs

PUSH PARA 1KK NO AZURE williamsrodz

Page 2: Introdução ao envio de notificações via Push com Azure Notification Hubs

USER

APP BACKEND

PUSH NOTIFICATIONS

PUSH SERVICE

Apple (APN) Google (GCM) Windows

Page 3: Introdução ao envio de notificações via Push com Azure Notification Hubs

+88%https://www.localytics.com/resources/types/case-study/

ENGAJAMENTO DO USUÁRIO EM APLICATIVOS QUE UTILIZAM PUSH NOTIFICATIONS

Page 4: Introdução ao envio de notificações via Push com Azure Notification Hubs

65%https://www.localytics.com/resources/types/case-study/

DOS USUÁRIOS RETORNAM A UM APLICATIVO DENTRO DE 30 DIAS QUANDO PUSH ESTÁ ATIVO.

Page 5: Introdução ao envio de notificações via Push com Azure Notification Hubs

DEVICE APP BACKEND

PUSH NOTIFICATIONS LIFECYCLE

PUSH SERVICE

Apple (APN) Google (GCM) Windows

REGISTRO É FEITO QUANDO O APP É INICIALIZADO

Aplicativo notifica a PNS (Platform Notification Service) e recebe as informações de registro exemplo: ChannelURIs, device tokens, registrationIds)

Aplicativo envia para o backend o handler do dispositivo

Atualizações são geridas pelo back-end

Page 6: Introdução ao envio de notificações via Push com Azure Notification Hubs

DEVICE APP BACKEND

PUSH NOTIFICATIONS LIFECYCLE

PUSH SERVICE

Apple (APN) Google (GCM) Windows

ENVIO DE NOTIFICAÇÕES App back-end envia notificação para PNS que “empurra" as notificações para o aplicativo no dispositivo.

Page 7: Introdução ao envio de notificações via Push com Azure Notification Hubs

DEVICE APP BACKEND

PUSH NOTIFICATIONS LIFECYCLE

PUSH SERVICE

Apple (APN) Google (GCM) Windows

MANUTENÇÃO Excluir handlers quando rejeitado pela PNS.

Page 8: Introdução ao envio de notificações via Push com Azure Notification Hubs

DESAFIOS

DEPENDÊNCIA DE PLATAFORMA

PNS não são unificados.

Back-end com lógica dependente de plataforma.

Maior complexidade e difícil manutenção para enviar notificações para dispositivos em várias plataformas.

Page 9: Introdução ao envio de notificações via Push com Azure Notification Hubs

DESAFIOS

ROTEAMENTO

PNS fornece uma forma de enviar uma mensagem para um dispositivo/canal

O back-end do aplicativo é responsável por manter um registro associando dispositivos a grupos de interesse/usuários

Page 10: Introdução ao envio de notificações via Push com Azure Notification Hubs

DESAFIOS

ESCALA

LATÊNCIAINFRA

Os tokens de dispositivo são atualizados sempre que o aplicativo é iniciado (diretrizes de PNS), com isso o back-end tem que lidar com um grande volume de dados só para manter esses tokens atualizados

A maioria dos PNS não dá suporte à transmissão para vários dispositivos. Isso significa que uma transmissão simples para um milhão de dispositivos resulta em um milhão de chamadas para o PNS.

Page 11: Introdução ao envio de notificações via Push com Azure Notification Hubs

AZURE NOTIFICATION HUB

Page 12: Introdução ao envio de notificações via Push com Azure Notification Hubs

ENVIO DE PUSH

SIMPLES

Page 13: Introdução ao envio de notificações via Push com Azure Notification Hubs

QUALQUER PLATAFORMA

Page 14: Introdução ao envio de notificações via Push com Azure Notification Hubs
Page 15: Introdução ao envio de notificações via Push com Azure Notification Hubs

QUALQUER BACK-END

Page 16: Introdução ao envio de notificações via Push com Azure Notification Hubs
Page 17: Introdução ao envio de notificações via Push com Azure Notification Hubs

MILHÕES DE DISPOSITIVOS

Page 18: Introdução ao envio de notificações via Push com Azure Notification Hubs

DEMOCODE & SLIDEShttps://github.com/williamsrz/xamarin-talks

Page 19: Introdução ao envio de notificações via Push com Azure Notification Hubs

QUANTO CUSTA?

Page 20: Introdução ao envio de notificações via Push com Azure Notification Hubs

USE SEM PAGAR

1KK mensagens incluídos por assinatura; 500 dispositivos ativos por namespace;

Page 21: Introdução ao envio de notificações via Push com Azure Notification Hubs

E QUANDO EU FOR PAGAR VAI SER CARO?

$10/mês para 10KK de mensagens; $1 para cada 100M adicionais; 200mil dispositivos ativos por namespace;

Page 22: Introdução ao envio de notificações via Push com Azure Notification Hubs

POR ONDE COMEÇAR?

Page 23: Introdução ao envio de notificações via Push com Azure Notification Hubs

VISUAL STUDIO DEV ESSENTIALShttps://www.visualstudio.com/dev-essentials/

R$75CREDITOS AZURE MÊS POR 1 ANO

Page 24: Introdução ao envio de notificações via Push com Azure Notification Hubs

AZURE DOC'S NOTIFICATION HUBShttps://docs.microsoft.com/pt-br/azure/notification-hubs/

FREE SAMPLES

Page 25: Introdução ao envio de notificações via Push com Azure Notification Hubs

SHOW ME THE CODEhttps://github.com/Azure/azure-notificationhubs-samples

GITHUB SAMPLES

Page 26: Introdução ao envio de notificações via Push com Azure Notification Hubs

DÚVIDAS?

Page 27: Introdução ao envio de notificações via Push com Azure Notification Hubs

OBRIGADOwilliamsrodz