モバイルアプリケーションでの プッシュ通知のよく …...• ec アプリ •...

46
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. モバイルアプリケーションでの プッシュ通知のよくある課題と解決策 内⼭ 陽介 アマゾン ウェブ サービス ジャパン 技術統括本部 ソリューションアーキテクト Twitterハッシュタグ #AWSInnovate

Upload: others

Post on 30-Aug-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

モバイルアプリケーションでのプッシュ通知のよくある課題と解決策内⼭ 陽介アマゾン ウェブ サービス ジャパン技術統括本部 ソリューションアーキテクト

Twitterハッシュタグ #AWSInnovate

Page 2: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

本セッションについてセッションの対象者

• モバイルアプリケーションでプッシュ通知の検討/改善を考えている⽅

セッションのゴール• モバイルアプリケーションのプッシュ通知におけるよくある課題を理解する• AWSのマネージドサービスを使った課題の解決⽅法を理解する

【ご連絡事項】本セッション内容について確認するためのクイズおよび簡単なアンケートがセッションの最後にあります。なおクイズの回答はアンケートとあわせて表⽰されます。

Page 3: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

アジェンダ本セッションで扱うプッシュ通知について

プッシュ通知におけるよくある課題

AWSのマネージドサービスを活⽤した解決⽅法

まとめ

クイズ

Page 4: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Page 5: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

本セッションで扱うプッシュ通知

Mobile

APNs

FCM

ADM

Baidu Cloud Push

Marketer

Application

User

Page 6: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

プッシュ通知は様々なユースケースで利⽤される• ユースケース• ECアプリ• ニュースアプリ• ソーシャルゲーム• etc, etc...

• 規模• スタートアップ• エンタープライズ

Page 7: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Page 8: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

プッシュ通知におけるよくある課題• 課題1: 配信基盤の構築• デバイストークンの管理、 配信サーバーの管理 / スケーリング、セグメント配信

• 課題2: 配信速度の管理 / APIサーバーへの負荷対策• 課題3: ユーザー毎に異なる通知を送りたい• パーソナライズされた通知

• 課題4: 通知の結果を計測したい• 課題5: 通知のツールを⼀括管理したい

Page 9: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

課題1: 配信基盤の構築

Amazon RDS

Auto Scaling group

Amazon EC2 Amazon SQS

QueueMobile

EC2Instances

DBから送信先セグメントを抽出

抽出した⼤量の通知先に⾼速にプッシュ配信するために⼤

量のWorkerを⽤意

Marketer

APNs

FCM

ADM

Baidu Cloud Push

Page 10: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

課題2: 配信速度の管理 / APIサーバーへの負荷対策

Mobile

Auto Scaling group

EC2Instances

APNs

FCM

ADM

Baidu Cloud Push

Elastic Load Balancing

Page 11: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

課題3: ユーザー毎に異なる通知を送りたい

Amazon RDS

Auto Scaling group

Amazon EC2 Amazon SQS

QueueMobile

EC2Instances

DBから送信先セグメントを抽出

抽出した⼤量の通知先に⾼速にプッシュ配信するために⼤

量のWorkerを⽤意

Marketer

APNs

FCM

ADM

Baidu Cloud Push

Page 12: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

課題4: 通知の結果を計測したい

Mobile Amazon KinesisData Streams

Amazon Kinesis Data Firehose

APNs

FCM

ADM

Baidu Cloud Push

Page 13: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Mobile

プッシュ通知

EmailMarketer

サービスA

サービスB

SMS

サービスC

Page 14: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Page 15: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Amazon Pinpoint とは

○○購⼊

イベント・属性収集

居住地

好きなスポーツ

etc,etc… ダッシュボード

• ユーザ⾏動の解析と可視化• ターゲティング(セグメンテーション)通知

• モバイルプッシュ/Email/SMS/Voice etc• 配信数、開封率の把握などの分析

AWSによるカスタマーエンゲージメントプラットフォーム

可視化・分析

開発者・マーケター

該当ユーザのみに通知送信名古屋の野球好きに

「限定イベント中︕」と送信

ターゲティング通知

Page 16: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

課題1: 配信基盤の構築(再掲)

Amazon RDS

Auto Scaling group

Amazon EC2 Amazon SQS

QueueMobile

EC2Instances

DBから送信先セグメントを抽出

抽出した⼤量の通知先に⾼速にプッシュ配信するために⼤

量のWorkerを⽤意

Marketer

APNs

FCM

ADM

Baidu Cloud Push

Page 17: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Amazon Pinpointでの通知の配信1. タイミング︓いつ2. ターゲット︓誰に3. コンテンツ︓何を送って4. 結果の確認︓効果はどの程度あったか

Page 18: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

配信タイミングの調整

• 配信スケジュール• 即時配信• 繰り返し配信• Once/Hourly/Daily/

Weekly/Monthly

• イベントベースの配信• イベント• イベント属性• イベントメトリクス

Page 19: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

配信セグメントの設定

• フィルター条件• 標準属性

• Appのバージョン• 最後に起動した時間• iOSのバージョン• ・・・

• カスタムユーザ属性• 居住地• 興味のあるトピック• ・・・

• 既存の配信リスト

Page 20: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

課題1: 配信基盤の構築(再掲)

Amazon RDS

Auto Scaling group

Amazon EC2 Amazon SQS

QueueMobile

EC2Instances

DBから送信先セグメントを抽出

抽出した⼤量の通知先に⾼速にプッシュ配信するために⼤

量のWorkerを⽤意

Marketer

APNs

FCM

ADM

Baidu Cloud Push

AmazonPinpoint

Page 21: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

RoomClip様におけるAmazon Pinpoint活⽤事例

https://www.slideshare.net/AmazonWebServicesJapan/amazon-pinpoint-x

Page 22: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

RoomClip様におけるAmazon Pinpoint活⽤事例

https://www.slideshare.net/AmazonWebServicesJapan/amazon-pinpoint-x

Page 23: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Disney様におけるAmazon Pinpoint活⽤事例

https://pages.awscloud.com/rs/112-TZM-766/images/A3-01.pdf

Page 24: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

MLB 配信におけるプッシュ通知1. 毎⽉最⼤10億件のプッシュ

通知2. ユーザーデータによるター

ゲティング / パーソナライズ

3. 試合状況のリアルタイムな通知

Page 25: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Mobile

Auto Scaling group

EC2Instances

APNs

FCM

ADM

Baidu Cloud Push

Elastic Load Balancing

課題2: 配信速度の管理 / APIサーバーへの負荷対策(再掲)

Page 26: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

細やかな配信設定• 秒間最⼤送信数(送信速度調整):

50〜20,000• ⼀⼈のユーザが受け取る⼀⽇辺り

最⼤メッセージ数: 1 〜 100• ⼀⼈のユーザが受け取る

キャンペーン辺り最⼤メッセージ数: 1 〜 100

• キャンペーン辺り最⻑持続時間:0〜• 配信除外時間(現地時刻考慮)

Page 27: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Mobile

Auto Scaling group

EC2Instances

APNs

FCM

ADM

Baidu Cloud Push

Elastic Load Balancing

課題2: 配信速度の管理 / APIサーバーへの負荷対策(再掲)

AmazonPinpoint

Page 28: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

課題3: ユーザー毎に異なる通知を送りたい(再掲)

Amazon RDS

Auto Scaling group

Amazon EC2 Amazon SQS

QueueMobile

EC2Instances

DBから送信先セグメントを抽出

抽出した⼤量の通知先に⾼速にプッシュ配信するために⼤

量のWorkerを⽤意

Marketer

APNs

FCM

ADM

Baidu Cloud Push

Page 29: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

メッセージのカスタマイズ• 通知の種類

• Standard• Silent

• メッセージ• 任意のメッセージ• 属性情報の埋め込み

• OpenのAction• Open App• Go to URL• Open deep link

Page 30: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

課題3: ユーザー毎に異なる通知を送りたい(再掲)

Amazon RDS

Auto Scaling group

Amazon EC2 Amazon SQS

QueueMobile

EC2Instances

DBから送信先セグメントを抽出

抽出した⼤量の通知先に⾼速にプッシュ配信するために⼤

量のWorkerを⽤意

Marketer

APNs

FCM

ADM

Baidu Cloud Push

AmazonPinpoint

Page 31: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

課題4: 通知の結果を計測したい(再掲)

Mobile Amazon KinesisData Streams

Amazon Kinesis Data Firehose

APNs

FCM

ADM

Baidu Cloud Push

Page 32: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

配信の効果測定 (数分以内に反映)

• 配信メトリクス• 配信数• 到達数

• キャンペーンメトリクス• 配信率• 開封率• セッション数/デバイス• 課⾦数/デバイス

• キャンペーンセッションヒートマップ

Page 33: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

他サービスとの連携(イベントストリーム)

• イベントストリームを使ってAmazon Kinesis経由で Amazon S3 や AWS Lambda などと連携可能

• 連携可能なイベント• アプリイベント• キャンペーンイベント• ジャーニーイベント• Eメールイベント• SMSイベント

https://docs.aws.amazon.com/ja_jp/pinpoint/latest/developerguide/event-streams.html

Page 34: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

課題4: 通知の結果を計測したい(再掲)

Mobile Amazon KinesisData Streams

Amazon Kinesis Data Firehose

APNs

FCM

ADM

Baidu Cloud Push

AmazonPinpoint

Page 35: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

(再掲)

Mobile

プッシュ通知

EmailMarketer

サービスA

サービスB

SMS

サービスC

Page 36: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

配信チャネルの選択

• 配信チャネル• プッシュ通知

• FCM• APNs• Baidu Cloud Push• ADM

• Email• SMS• (カスタムチャネル)

※�AWS�Lambda�によるセグメントフィルタ、カスタムチャネルは2020.02現在ベータ機能です

Page 37: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

(再掲)

Mobile

プッシュ通知

EmailMarketer

サービスA

サービスB

SMS

サービスC

AmazonPinpoint

Page 38: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

snaq.me様におけるAmazon Pinpoint活⽤事例

https://speakerdeck.com/miyoshihayato/story-of-crm-platform-using-line-by-amazon-pinpoint

Page 39: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

snaq.me様におけるAmazon Pinpoint活⽤事例

https://speakerdeck.com/miyoshihayato/story-of-crm-platform-using-line-by-amazon-pinpoint

Page 40: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

プッシュ通知におけるよくある課題(再掲)• 課題1: 配信基盤の構築• デバイストークンの管理、 配信サーバーの管理 / スケーリング、セグメント配信

• 課題2: 配信速度の管理 / APIサーバーへの負荷対策• 課題3: ユーザー毎に異なる通知を送りたい• パーソナライズされた通知

• 課題4: 通知の結果を計測したい• 課題5: 通知のツールを⼀括管理したい

Page 41: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

まとめ

Page 42: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

まとめ

Page 43: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Amazon Pinpointの参考資料

Amazon Pinpoint を中⼼としたカスタマーエンゲージメントの全体像https://www.slideshare.net/AmazonWebServicesJapan/amazon-pinpoint-customer-engagement-on-amazon-pinpoint-195463661

Amazon Pinpoint でユーザーを掴んで離すなhttps://youtu.be/IguLiA7Tvuc

Amazon Pinpoint のモバイル SDK ドキュメントhttps://aws-amplify.github.io/docs/sdk/android/push-notificationshttps://aws-amplify.github.io/docs/sdk/ios/push-notifications

Page 44: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Page 45: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

クイズ

Q: すでにモバイルアプリケーションを開発済みでプッシュ通知の配信基盤を持っています。しかし、Amazon Pinpointのパーソナライズされた配信や、配信速度の調整といった機能を使いたいと思っています。そこで、既存の配信基盤で持っているデバイストークンを利⽤してAmazon Pinpointを利⽤する場合、Amazon Pinpointの機能を使ってどのように実現すればよいでしょうか︖

Page 46: モバイルアプリケーションでの プッシュ通知のよく …...• EC アプリ • ニュースアプリ • ソーシャルゲーム • etc, etc... • 規模 •

Thank you!

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.