getting started with aws mobile hub
TRANSCRIPT
© 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
John Chang 張書源Technology Evangelist
October 2016
使用 AWS Mobile Hub 在雲端打造你的行動 App
What to Expect from the Session
1. Mobile Hub background2. Feature overview3. Demo
The best mobile apps are built on AWS
“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
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
“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
There has to be a better way…
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
Introducing: The AWS Mobile Hub
Create a project and add features
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
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
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
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
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
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
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
Download your starter app & start coding…
Testing apps with Amazon Device Farm
Monitoring usage with Mobile Analytics
Demo
挑戰 A: 建立推播通知的 Mobile App
Step 1
使用 Mobile Hub 建立一個Android或是 iOS 應用程式
Step 2
加入SNS推播訊息功能
Step 3
測試:按下Mobile App上的按鈕之後,可以推送“Hello, MOPCON!” 訊息到模擬器或是手機上
AWSMobile Hub
AmazonSNS Mobile client
挑戰 B: 使用Device Farm測試 Mobile App
Step 1
完成挑戰 A
Step2
使用 Device Farm 測試Mobile App 在三個不同裝置的執行畫面
測試Android或iOS裝置
AWSMobile Hub
Mobile clientAWSDevice Farm
挑戰 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 積分!
Remember to complete your evaluations!
Thank you!