getting started with aws mobile hub

27
© 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved. John Chang 張書源 Technology Evangelist October 2016 使用 AWS Mobile Hub 在雲端打造你的 行動 App

Upload: amazon-web-services

Post on 06-Jan-2017

305 views

Category:

Technology


6 download

TRANSCRIPT

Page 1: Getting Started with AWS Mobile Hub

© 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

John Chang 張書源Technology Evangelist

October 2016

使用 AWS Mobile Hub 在雲端打造你的行動 App

Page 2: Getting Started with AWS Mobile Hub

What to Expect from the Session

1. Mobile Hub background2. Feature overview3. Demo

Page 3: Getting Started with AWS Mobile Hub

The best mobile apps are built on AWS

Page 4: Getting Started with AWS Mobile Hub

“Mobile” growing in all directionsPublished mobile apps

continue to grow……As “mobile” platforms expand to new domains

TV

Watch

Car

*Source: Vision Mobile

0

200

400

600

800

1000

1200

1400

1600

2011 2012 2013 2014

Published Apps in App Stores ('000s)*

iOS App Store Google Play

Page 5: Getting Started with AWS Mobile Hub

Apps are also getting more complex

…To cloud-connected apps From basic client apps…

Sign-in/SocialPush notifications

Usage analytics

Cloud storage

Crash analytics

Ads

Attributionanalytics Config management

Custom back ends

Page 6: Getting Started with AWS Mobile Hub

“AWS has what we need, but…it’s complex”

1. Which services should I use? 2. How do I connect them?

Identity provider SDKs+

=

Example:

Login screen & integration code+

SDK

Page 7: Getting Started with AWS Mobile Hub

There has to be a better way…

Page 8: Getting Started with AWS Mobile Hub

Introducing: The AWS Mobile Hub

1. Single integrated console

2. Pre-built features

3. Auto-provisioned services

4. Auto-generated app

Result: Build apps on AWS in minutes

Page 9: Getting Started with AWS Mobile Hub

Introducing: The AWS Mobile Hub

Page 10: Getting Started with AWS Mobile Hub

Create a project and add features

Page 11: Getting Started with AWS Mobile Hub

Configure how your users sign in:• No sign-in, optional, or mandatory

Configure sign-in providers:• Facebook (Google, Twitter, Amazon to follow)• Your own system

Adds a sign-in screen to your quickstart app

Powered by Amazon Cognito Identity

User sign-in

Page 12: Getting Started with AWS Mobile Hub

Store user files such as photos• User-only access or all-user access

Store user profile data• Key-value pairs• Syncs across devices where user signed in

Quickstart app includes usage examples• Contains file browser and color selector

Powered by Amazon S3 and Amazon Cognito Sync

User data storage

Page 13: Getting Started with AWS Mobile Hub

Monitor app usage with analytics• Session, monetization, and custom events• Monitor active users, monetization, retention

Quickstart app includes all three event types

Access your dashboard from the Mobile Hub

App analytics

Powered by Amazon Mobile Analytics

Page 14: Getting Started with AWS Mobile Hub

Store application assets in the cloud• Example: Resource files or media assets

Use a CDN for faster delivery (optional)

Quickstart app includes on-device cache logic• Set max cache size• Pin specific files to the cache

Powered by Amazon S3 and CloudFront

App content delivery

Page 15: Getting Started with AWS Mobile Hub

Run back-end code in the cloud• Share functions across apps• Update on the fly without app submissions

Call directly from your mobile app• You define inputs/outputs

Write in Java, Javascript, or Python

You write code, we manage infrastructure

Powered by AWS Lambda

Cloud logic

Page 16: Getting Started with AWS Mobile Hub

Send push notifications to your apps• iOS or Android• 1:1 or topic/subscription based

Quickstart app demonstrates features• Enable/disable notifications• Auto-registers push tokens with SNS• Lets you select topic subscriptions

Powered by Amazon SNS

Push notifications

Page 17: Getting Started with AWS Mobile Hub

AWS IoT Rules Engine & Amazon SNS

Push NotificationsApple APNS Endpoint, Google GCM Endpoint, Amazon ADM Endpoint, Windows WNS

Amazon SNS -> HTTP Endpoint (Or SMS or Email)Call HTTP based 3rd party endpoints through SNS with subscription and retry support

SNS

2

Page 18: Getting Started with AWS Mobile Hub

Download your starter app & start coding…

Page 19: Getting Started with AWS Mobile Hub

Testing apps with Amazon Device Farm

Page 20: Getting Started with AWS Mobile Hub

Monitoring usage with Mobile Analytics

Page 21: Getting Started with AWS Mobile Hub

Demo

Page 22: Getting Started with AWS Mobile Hub

挑戰 A: 建立推播通知的 Mobile App

Step 1

使用 Mobile Hub 建立一個Android或是 iOS 應用程式

Step 2

加入SNS推播訊息功能

Step 3

測試:按下Mobile App上的按鈕之後,可以推送“Hello, MOPCON!” 訊息到模擬器或是手機上

AWSMobile Hub

AmazonSNS Mobile client

Page 23: Getting Started with AWS Mobile Hub

挑戰 B: 使用Device Farm測試 Mobile App

Step 1

完成挑戰 A

Step2

使用 Device Farm 測試Mobile App 在三個不同裝置的執行畫面

測試Android或iOS裝置

AWSMobile Hub

Mobile clientAWSDevice Farm

Page 24: Getting Started with AWS Mobile Hub

挑戰 A & B: 獎品

Step Task Prize

1 使用 Mobile Hub 建立一個Android或是 iOS 應用程式

AWS 文件夾2 加入推播訊息功能

3 測試:按下Mobile App上的按鈕之後,可以推送 “Hello, MOPCON!” 訊息到模擬器或是手機上

Step Task Prize

1 完成挑戰 A

AWS 工具組2 使用 Device Farm 測試 Mobile App 在三個不同裝置的執行畫面

• Android: Sony Sony Xperia Z5 (5.1.1), HTC One (5.1), Samsung Galaxy Note5 (5.1.1)

• iOS: Apple iPhone 5s (9.3.1), Apple iPhone 6s (9.3.1), Apple iPhone 6s Plus (9.3.1)

完成挑戰A & B且完整填寫問卷者,還可以得到價值50美元 AWS 積分!

Page 25: Getting Started with AWS Mobile Hub
Page 26: Getting Started with AWS Mobile Hub

Remember to complete your evaluations!

Page 27: Getting Started with AWS Mobile Hub

Thank you!