27
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Andrew Chud, Senior Engineer, AWS Mobile Hub @AndrewChud April 19, 2017 Deep Dive on Mobile Application Development with AWS

SRV411 Deep Dive on Mobile Application Development with AWS

Embed Size (px)

Citation preview

Page 1: SRV411 Deep Dive on Mobile Application Development with AWS

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

Andrew Chud, Senior Engineer, AWS Mobile Hub @AndrewChud

April 19, 2017

Deep Dive on Mobile Application Development with AWS

Page 2: SRV411 Deep Dive on Mobile Application Development with AWS

What to Expect from the Session

• AWS Mobile services overview

• Accelerating app development with AWS Mobile Hub

• What’s New: Amazon Cognito, Amazon Pinpoint & AWS Device Farm

• Building hybrid apps with Ionic and AWS Mobile Hub

Max Lynch – Co-founder and CEO @ Ionic

Page 3: SRV411 Deep Dive on Mobile Application Development with AWS

AWS Services for Mobile App Development

Cognito Identity

Device Farm AWS Lambda

API Gateway SES

Mobile Hub

Android SDK

iOS SDK

JavaScript SDK

DynamoDB

Amazon RDS

S3

CloudFront

Amazon EMR

Amazon Kinesis

Amazon Redshift

Pinpoint Analytics

Mobile App Development

Serverless Backend

Identity Management

Testing and Dev tools

Data

Storage and Content

Mobile Analytics

Email + Push

Analytics and Big Data

CodeCommit

CodeDeploy

CodePipeline

Cognito Sync

Pinpoint Messaging

Page 4: SRV411 Deep Dive on Mobile Application Development with AWS

Leading Mobile Apps Run on AWS

Amazon Cognito

AWS Device Farm

AWS Lambda

API Gateway

SES

SNS

Page 5: SRV411 Deep Dive on Mobile Application Development with AWS

Accelerating app development with AWS Mobile Hub

Page 6: SRV411 Deep Dive on Mobile Application Development with AWS

AWS Mobile Hub and SDKs make it easy to plug the services into your app with minimal effort

Authenticate users

Analyze user behavior

Store and share media

Synchronize data

Deliver media

Amazon Cognito Sync

Amazon Cognito Identity Amazon Cognito User Pools

Amazon S3

Amazon CloudFront

Store data Amazon DynamoDB Amazon RDS

Send targeted messages

Run server-side logic AWS Lambda Amazon API Gateway

Amazon Lex

Converse using voice/chat bots Amazon Pinpoint Analytics

AWS Mobile SDKs

AWS Mobile Hub

Amazon Pinpoint Messaging Amazon SNS

Test on real devices AWS Device Farm

Page 7: SRV411 Deep Dive on Mobile Application Development with AWS

Mobile Hub Auto-Provisions Mobile Services

AWS IDENTITY & ACCESS

MANAGEMENT

AMAZON S3

AMAZON CLOUDFRONT

AMAZON COGNITO

AMAZON PINPOINT

AMAZON SNS

AWS DEVICE FARM

AMAZON DYNAMODB

AWS LAMBDA

Page 8: SRV411 Deep Dive on Mobile Application Development with AWS

AWS Mobile Hub

Working Mobile App project includes: Xcode or Android Studio project Uses your AWS resources Example application code Helper “glue” code Software development kits Detailed integration instructions

Page 9: SRV411 Deep Dive on Mobile Application Development with AWS

AWS Mobile SDKs

Unity Xamarin React Native (Beta)

iOS Android Windows JavaScript

Page 10: SRV411 Deep Dive on Mobile Application Development with AWS

Simple mobile backend

Use Mobile Hub to quickly store and retrieve app data in Amazon DynamoDB. Example: Build a backend to update game scores

Page 11: SRV411 Deep Dive on Mobile Application Development with AWS

Serverless Backend for Mobile Apps

Use Mobile Hub to quickly configure serverless backends using AWS Lambda and Amazon API Gateway

Example: Build a social messaging app

Pinpoint Engage app users

Page 12: SRV411 Deep Dive on Mobile Application Development with AWS

Secure Enterprise App

Use Mobile Hub to develop employee– and customer-facing mobile apps Example: Build an inventory management application

Page 13: SRV411 Deep Dive on Mobile Application Development with AWS

Conversational bot interfaces

Amazon Pinpoint

Amazon DynamoDB

Page 14: SRV411 Deep Dive on Mobile Application Development with AWS

Mobile Hub – What’s New

• Conversational bots GA

• Mobile web skeleton app • aws-config.js <= Constants/endpoints for Mobile Hub backend • index.html <= Demonstrates Amazon Cognito guest access • AWS JavaScript SDK

• Import / export of projects

• Componentization of auth UX in quickstart app

Page 15: SRV411 Deep Dive on Mobile Application Development with AWS

Mobile Hub Demo

Page 16: SRV411 Deep Dive on Mobile Application Development with AWS

More What’s New

Page 17: SRV411 Deep Dive on Mobile Application Development with AWS

Groups Cognito User Pools

Managing Users and Access with Groups and Roles

Group A IAM role A

Group B IAM role B

Authenticated user identity

Get credentials

Multiple Roles for Authenticated Identities Cognito Federated Identities

IAM role and policy

IAM role and policy

IAM role and policy Backend resources

Map

to d

iffer

ent I

AM

role

s

API Gateway

DynamoDB

S3

Con

trol a

cces

s

Page 18: SRV411 Deep Dive on Mobile Application Development with AWS

Amazon Pinpoint – integrated messaging and analytics to drive effective user engagement

Segment and target

Message and engage

Measure improvement

Analyze user behavior

Page 19: SRV411 Deep Dive on Mobile Application Development with AWS

Increase engagement, monetization, and retention

Amazon Kinesis streams

Monetization dashboards

User-based segmentation and user attributes

Page 20: SRV411 Deep Dive on Mobile Application Development with AWS

AWS Device Farm – What’s New

• Limited time promotions • 1000 device minutes as part of your one-time free trial, four

times more than the usual 250 • 3 months for the price of 1 on your first device slot (unlimited

testing) purchase

• Simulate real-world network connections

• Run longer tests & control test duration

• Use Appium 1.6.3 test automation framework

Page 21: SRV411 Deep Dive on Mobile Application Development with AWS

Ionic Demo Max Lynch, CEO & Co-Founder at Ionic ([email protected])

Page 22: SRV411 Deep Dive on Mobile Application Development with AWS

Harnessing the Power of the Open Web

• Top 25 most popular JavaScript project on GitHub. • 100% open source, backed by passionate community. • Powerful native & progressive web apps with open web. • Making it easy (and fun) to build amazing mobile apps.

Page 23: SRV411 Deep Dive on Mobile Application Development with AWS

+

Page 24: SRV411 Deep Dive on Mobile Application Development with AWS

Try it out

• Visit http://aws.amazon.com/mobile to get started

Page 25: SRV411 Deep Dive on Mobile Application Development with AWS

Thank You

Page 26: SRV411 Deep Dive on Mobile Application Development with AWS

Appendix

Page 27: SRV411 Deep Dive on Mobile Application Development with AWS

Mobile SDK – What’s New

• Updates to AI services (Lex GA, Polly, Rekognition)

• Support for new services: CloudWatch Logs, KMS

• Custom log adapters to route SDK logs to desired target

• iOS: Swift 3 code generation for API Gateway

• Android: Client-side encryption for S3