SlideShare a Scribd company logo
1 of 111
Download to read offline
v	
  
Building Mobile and Web
Apps using the AWS Mobile
and Javascript SDKs
Parijat Mishra | Solutions Architect | Amazon Web Services
parijat@amazon.com
v	
  
In this session, we’ll be creating Android apps
to demonstrate various features of AWS
v	
  
How do we build mobile apps today?
v	
  
Authenticate  users
Authorize access
Analyze User Behavior
Store and share media
Synchronize data
Deliver media
Store shared data
Stream real-time dataTrack Retention
Send push notifications
Manage users and
identity providers
Securely access
cloud resources
Sync user prefs
across devices
Track active users,
engagement
Manage funnels,
Campaign performances
Store user-generated photos
Media and share them
Automatically detect mobile devices
Deliver content quickly globally
Bring users back to your app by sending
messages reliably
Store and query fast NoSQL data
across users and devices
Collect real-time clickstream
logs and take actions
quickly
Your
Mobile
App
Your mobile
application
v	
  
Introducing AWS Mobile Services
Amazon Cognito Amazon Mobile Analytics Amazon SNS Mobile Push
Kinesis Connector DynamoDB Connector S3 Connector SQS Connector SES Connector
AWS Global Infrastructure (11 Regions, 28 Availability Zones, 52 Edge Locations)
Core Building Block
Services
Mobile Optimized
Connectors
Mobile Optimized
Services
Your Mobile App, Game or Device App
AWS Mobile SDK, API Endpoints, Management Console
Compute Storage Networking Analytics Databases
Integrated SDK
v	
  
Fully integrated AWS
mobile SDK
Cross-platform,
optimized for mobile
Automatically handles
intermittent and latent
network
AWS Mobile SDK
Reduced memory footprint
Common authentication
method across all services	
  
v	
  
Authenticate  users
Authorize access
Analyze User Behavior
Store and share media
Synchronize data
Deliver media
Store shared data
Stream real-time dataTrack Retention
Send push notifications
Manage users and
identity providers
Securely access
cloud resources
Sync user prefs
across devices
Track active users,
engagement
Manage funnels,
Campaign performances
Store user-generated photos
Media and share them
Automatically detect mobile devices
Deliver content quickly globally
Bring users back to your app by sending
messages reliably
Store and query fast NoSQL data
across users and devices
Collect real-time clickstream
logs and take actions
quickly
Your
Mobile
App
Your mobile
application
v	
  
Authenticate  users
Authorize access
Analyze User Behavior
Store and share media
Synchronize data
Deliver media
Store shared data
Stream real-time dataTrack Retention
Send push notifications
Amazon Cognito
(Identity broker)
AWS Identity and
Access Management
Amazon Cognito
(Sync)
Amazon Mobile
Analytics
Amazon Mobile
Analytics
Amazon S3
Transfer Manager
Amazon CloudFront
(Device Detection)
Amazon SNS
Mobile Push
Amazon DynamoDB
(Object Mapper)
Amazon Kinesis
(Recorder)
Your mobile
application
with the AWS
Mobile SDK
v	
  
Let’s build a Media App!
What should it do?
v	
  
Our Media App’s wish-list of features
q  Upload & Download media files to/from S3 buckets
q  Grant anonymous but secure access to AWS resources in our account
q  Grant authenticated access for users that log in via Public Identity Providers
q  Send push notifications to mobile devices
q  Store the media library inventory in the cloud so it can be queried by many users
q  Provide partitioned access to the media library based on Public and Private views
q  Synchronise user data across devices
q  Make all this available across devices (iOS, Android, Kindle) and web
v	
  
•  Goals:
•  User is anonymous – we don’t care who they are, treat them as ‘Public’ or ‘Guest’
•  Directly access AWS Simple Storage Service (S3) from the mobile application
•  We do not want to upload to a server and then have the server push the file to S3…
•  Requirements:
•  We need to authenticate the application on the mobile device
•  We do not want to bake the AWS credentials in our mobile app!
•  Even though users are anonymous, we still want to control access to AWS
First App: Basic Download/Upload App
v	
  
Mobile App
S3 Bucket with
test media
Cognito Identity
First App: Basic Download/Upload App
v	
  
Amazon Cognito
Granting ‘guest’ access to our
‘Public’ users for controlled access to AWS resources
v	
  
Cognito Identity Example
Cognito Identity for Guests
Cognito assigns a unique identifier for each
device when a user is not logged on
Cognito Identity for Authenticated Users
Cognito assigns a unique identifier for each user
when they are authenticated. This will be the
same identifier for this user regardless of which
device they use
v	
  
Cognito setup
v	
  
Create a new Cognito Identity Pool
v	
  
Create a new Cognito Identity Pool
Supplying public identity
providers is optional
For this demo, we will not be
supporting public identity
providers, so we leave them empty
v	
  
Create a new Cognito Identity Pool
Enable guest access
For this demo, we will allow ‘anonymous access’
so that unauthenticated users can upload and
download from our S3 bucket
v	
  
Create a new Cognito Identity Pool
Create IAM Roles
Create IAM roles for
this Cognito Identity
Pool. We will assign
tight security controls
to these roles later
v	
  
Create a new Cognito Identity Pool
And assign a role for
unauthenticated access
v	
  
Create a new Cognito Identity Pool
Starter code samples
Cognito conveniently
provides starter code for you
for Android, iOS and .Net!
This is an example of how
you can easily connect your
app to Cognito
v	
  
Setup the required permissions in IAM
v	
  
Setup the required permissions in IAM
Note the default policy
v	
  
Setup the required permissions in IAM
Default policy created by
Cognito
By default, access to Cognito
Sync and Mobile Analytics is
permitted. This policy has been
generated by the Cognito Create
Identity Pool wizard
v	
  
Media in our S3 bucket
S3 Bucket contents
Test file that we will be
downloading via the
TransferManager S3 connector
v	
  
S3 Bucket ACLs
Note that the ACLs on the bucket
do not permit ‘Public’ so the asset
is not world-accessible
Media in our S3 bucket
v	
  
Let’s give the anonymous ‘guest’ access to our
S3 bucket for read and write
v	
  
Setup the required permissions in IAM
Use the Policy Generator
We’ll create our specific S3-
related policy using the Policy
Generator
v	
  
Setup the required permissions in IAM
Specify our bucket
Our policy will specify access for
our specific bucket. We’ll allow
GetObject and PutObject
v	
  
Setup the required permissions in IAM
Resulting Policy Document
Here’s what the resulting policy
looks like for allowing READ
access to any object in the
specific bucket, and the ability to
WRITE any object
v	
  
We’re now set up – let’s start coding!
v	
  
Instantiate Cognito Credentials Provider
Give Cognito your details
•  Account Id
•  Identity Pool ARN
•  UnAuthenticated access Role ARN
•  Authenticated access Role ARN
•  The Region you are running Cognito in
v	
  
Implementation Note!
This ‘Cognito’ class is just
my convenience wrapper!
I have chosen to implement
this as a Singleton at
App-scope
Your implementation may
be different
The only important thing is
that you instantiate a
CognitoCachingCredentialsProvider
v	
  
S3 Connector
•  Multipart upload media (photos, videos, audio)
•  Fault tolerant download (e.g. assets)
•  No backend required
•  Automatic retries
•  Pause, resume, cancel functions
•  Optimized for native OS
Amazon S3 Connector: Transfer Manager
v	
  
Pass Cognito Credentials to the
AWS S3 Transfer Manager constructor
Pass the Cognito Provider to the TransferManager S3
connector to construct based on the Cognito-acquired
AWS credentials
v	
  
Set up the download request and go!
Initiate the download
v	
  
Demo App
First, the Application instantiates a
CognitoCachingCredentialsProvider()
Then initiates a download, followed by an upload
v	
  
Our Media App’s wish-list of features
q  Upload & Download media files to/from S3 buckets
q  Grant anonymous but secure access to AWS resources in our account
q  Grant authenticated access for users that log in via Public Identity Providers
q  Send push notifications to mobile devices
q  Store the media library inventory in the cloud so it can be queried by many users
q  Provide partitioned access to the media library based on Public and Private views
q  Synchronise user data across devices
q  Make all this available across devices (iOS, Android, Kindle) and web
q  Convert uploaded video files to various mobile/web formats
v	
  
Amazon Cognito
Now let’s authenticate our users
via public identity providers
v	
  
•  Goals:
•  User can be anonymous or they can choose to sign-in via Facebook
•  If they are anonymous, we let them see a ‘Public’ view of the media library
•  If they choose to sign-in, we let them see their own ‘Private’ view of the library
•  Requirements:
•  We will use Cognito to help with the Public and Private authentication
•  Again, no AWS credentials in our mobile app!
•  We want to enforce Fine-Grained Access Control on the database views
Implement Public & Private views
v	
  
User ID
(Temp
Credentials)
DynamoDB
End Users
Developer
App w/SDK
Access
to AWS Services
Cognito Identity
Broker
Login OAUTH/OpenID
Access Token
Cognito ID,
Temp
Credentials
S3
Mobile Analytics
Cognito Sync
Store
AWS
Management
Console
Access Token
Pool ID
Role ARNs
Amazon Cognito Security Architecture
v	
  
Raw DynamoDB records example
Range Key
Each OwnerId
has multiple
Filenames
Hash Key
Each OwnerId
identifies a user by
their Cognito identity,
or ‘public’ if they didn’t
log on to Facebook
v	
  
Raw DynamoDB records example
Inventory is partitioned
based on the OwnerId
‘public’ is accessible
to the ‘guest’
Cognito Identity
Anything else must
match the identity of
the user accessing
the application
Assigned by
Cognito
automatically
v	
  
Use the DynamoDB Mapper
Use the DynamoDB Mapper
annotations to decorate
your value object
Specify the HashKey,
RangeKey and the individual
Attributes in your value object
that should map to columns in
the DynamoDB table
v	
  
For this demo, we’ll use Facebook as our
Public Identity Provider
v	
  
Mobile App
DynamoDB
Implement Public & Private views
OAUTH/OpenID
Access Token
Cognito Identity
Broker
Cognito ID,
Temp
Credentials
Query for results
filtered by
OwnerId
v	
  
•  Great how-to
https://developers.facebook.com/docs/
android/getting-started
Using Facebook in your App
v	
  
Create an App on Facebook
v	
  
Create an App on Facebook
v	
  
Create an App on Facebook
Cognito needs the App ID
The App ID from Facebook is what
binds the Identity Pool to the
Facebook application
v	
  
Configure Cognito to use Facebook
v	
  
Add an Android application to FB
v	
  
Add an Android application to FB
v	
  
Add an Android application to FB
Generate your signing hash from your development
environment – check the documentation…
v	
  
We’re now set up – let’s start coding!
v	
  
Secure access to DynamoDB
Simply instantiate the
AmazonDynamoDBClient and
specify your Cognito provider as
the credential provider in the
constructor
v	
  
Querying the DynamoDB table from code
Querying the DynamoDB table is
simple!
The DynamoDB Mapper will map the
columns in the table to the fields in
your value object and return a typed
list of records ready to iterate
v	
  
Demo App
Guest access
•  Connects to Cognito as anonymous user
•  Gets AWS token and uses that to instantiate
a DynamoDB client
•  Queries DynamoDB using the key ‘public’
Authenticated access
•  Gets token from Facebook
•  Passes token to Cognito
•  Impersonates authenticated user
•  Queries DynamoDB using the key that matches
the Cognito Identity of this user
v	
  
Raw DynamoDB records example
Inventory is partitioned
based on the OwnerId
‘public’ is accessible
to the ‘guest’
Cognito Identity
Anything else must
match the identity of
the user accessing
the application
v	
  
FGAC on DynamoDB using IAM
Fine-Grained Access Control (FGAC)
•  Restrict which Actions can be called by the user
•  Restrict which DynamoDB Tables can be accessed by the user
•  Restrict which rows in the table are accessible by the user
•  Control which fields are accessible in the query results
v	
  
FGAC on DynamoDB using IAM
Control the actions the user
can invoke
The “Unauthenticated”
Role Policy
v	
  
FGAC on DynamoDB using IAM
Control the DynamoDB Table
the user can access
The “Unauthenticated”
Role Policy
v	
  
FGAC on DynamoDB using IAM
Restrict the Rows in the DynamoDB
table the user can access
The “Unauthenticated”
Role Policy
v	
  
FGAC on DynamoDB using IAM
Use the Cognito Id for this user to restrict
the rows that will be accessible to the user
The “Authenticated”
Role Policy
v	
  
Our Media App’s wish-list of features
q  Upload & Download media files to/from S3 buckets
q  Grant anonymous but secure access to AWS resources in our account
q  Grant authenticated access for users that log in via Public Identity Providers
q  Send push notifications to mobile devices
q  Store the media library inventory in the cloud so it can be queried by many users
q  Provide partitioned access to the media library based on Public and Private views
q  Synchronise user data across devices
q  Make all this available across devices (iOS, Android, Kindle) and web
q  Convert uploaded video files to various mobile/web formats
v	
  
Amazon SNS
Push Notifications
v	
  
Each platform works differently, and push gets even more complex as you
scale to support millions of devices.
Cloud App
Platform Services Mobile Apps
SNS application targets
v	
  
Amazon SNS
Cross-platform

Mobile Push 
Apple APNS
Google GCM
Amazon ADM
Windows WNS and MPNS
Baidu CP
With Amazon SNS, developers can send push notifications on multiple
platforms and reach mobile users around the world
Android Phones and Tablets
Apple iPhones and iPads
Kindle Fire Devices
Android Phones and Tablets in China
Windows Desktop and Phones
SNS application targets
Your application

back-end
v	
  
•  Goals:
•  Application automatically registers with Google Cloud Messaging (GCM)
•  The device registration Id is then sent to SNS to register as a device endpoint
•  The application then subscribes that device endpoint to a well-known SNS topic
This topic is shared by all other devices using the application
•  The application then confirms SNS Push Notifications are working by sending
a message to itself via SNS. The user sees a pop-up message.
•  Later, whenever a message is sent to the shared SNS Topic,
all devices subscribed receive a pop-up notification
Next App: SNS Push Notification App
v	
  
Mobile App
Next App: SNS Push Notification App
SNS Topic
SNS Application
ENDPOINT APP
TOPIC
Cognito
Create Platform
Endpoint
Subscribe to topic
Publish test
message to our
Endpoint
Push notification
from GCM
SNS
v	
  
Setup Amazon SNS
v	
  
On the SNS Dashboard, create a new Topic
v	
  
On the SNS Dashboard, create a new Topic
v	
  
Note the Topic’s ARN
We will need this in our code to
subscribe the device to the topic
so we can receive notifications
On the SNS Dashboard, create a new Topic
v	
  
Create a Google API Project
and obtain the Google Project ID	
  
v	
  
Enable GCM for Android
v	
  
Create the Server API Key
v	
  
Obtain the Server API Key from Google
v	
  
On the SNS Dashboard, create a new App
v	
  
Specify the API Key you got from Google
v	
  
Note the ARN for this SNS Application
v	
  
We’re now set up – let’s start coding!
v	
  
Instantiate Cognito Credentials Provider
Give Cognito your details
•  Account Id
•  Identity Pool ARN
•  UnAuthenticated access Role ARN
•  Authenticated access Role ARN
•  The Region you are running Cognito in
v	
  
Again, this ‘Cognito’ class is just my convenience wrapper
implemented as a Singleton
Instantiate SNS using Credentials from Cognito
v	
  
Get the device registration ID from GCM
We’re requesting the device
identifier/token for this unique
device, against the Google
Project Id we created earlier
v	
  
And register this device with the SNS App
The ‘deviceIdentifier’
is the device
token returned
from GCM for
this unique
device
v	
  
Finally, subscribe the endpoint to the Topic
The endpoint is the ARN you got
back from the previous call to
getEndpointArn()
v	
  
Demo App
At startup, we register this device
with the SNS Application
Then we subscribe this device
Endpoint to the global SNS Topic
We then send a test message from
the device to ourselves to confirm
the round trip is working
If we subsequently publish to the
global SNS Topic, all devices
subscribed will be notified
v	
  
Our Media App’s wish-list of features
q  Upload & Download media files to/from S3 buckets
q  Grant anonymous but secure access to AWS resources in our account
q  Grant authenticated access for users that log in via Public Identity Providers
q  Send push notifications to mobile devices
q  Store the media library inventory in the cloud so it can be queried by many users
q  Provide partitioned access to the media library based on Public and Private views
q  Synchronise user data across devices
q  Make all this available across devices (iOS, Android, Kindle) and web
v	
  
How did we initiate the
sending of the Push Notification to the
global SNS Topic?
But wait!
v	
  
Demo web page to send Push Notifications
Plain old Javascript and HTML!
The website is a standard HTML site with Javascript. It is
being served from S3, so no back-end servers
The magic comes from the AWS Javascript SDK
v	
  
Demo web page to send Push Notifications
Topic ARN
This is the topic we subscribed
our application to when
it started up
Cognito Role
This is the IAM role we want to use –
we’re using the unauthenticated ‘guest’
role in this demo
Cognito Identity Pool ID
This is the specific Cognito pool
we want to use for authentication
v	
  
Demo web page to send Push Notifications
v	
  
Demo web page to send Push Notifications
v	
  
Our Media App’s wish-list of features
q  Upload & Download media files to/from S3 buckets
q  Grant anonymous but secure access to AWS resources in our account
q  Grant authenticated access for users that log in via Public Identity Providers
q  Send push notifications to mobile devices
q  Store the media library inventory in the cloud so it can be queried by many users
q  Provide partitioned access to the media library based on Public and Private views
q  Synchronise user data across devices
q  Make all this available across devices (iOS, Android, Kindle) and web
v	
  
Amazon Cognito
Sharing data between devices
v	
  •  Goals:
•  User is authenticated with Facebook
•  Each time they modify gadgets in the app, the state of the
gadgets is synchronized with all other devices
using the application (for that user account)
•  Verify these shared data changes in a companion web page, where the
user is also authenticated with Facebook, and is the same user principal
Next App: Shared application data
v	
  
Add a Web application to FB
v	
  
Add a Web application to FB
S3 bucket name
We’re using S3 to serve the web site in this example, but
you can use CloudFront, or EC2, or use a CNAME
v	
  
Javascript code to read Cognito Sync Data
Instantiate the CognitoSync object
It will inherit the Cognito credentials from those we obtained
earlier from our call to CognitoIdentityCredentials()
v	
  
Javascript code to read Cognito Sync Data
Specify our parameters
We need to specify the DatasetName that we want to connect to,
and the Cognito Identity information as shown
v	
  
Javascript code to read Cognito Sync Data
Call CognitoSync::listRecords()
…and provide our params and a
callback
v	
  
Javascript code to read Cognito Sync Data
OnSuccess()
…iterate the results and do something
interesting with the data records
v	
  
Demo App Web Page
The web page has access
to the shared data when
authenticated as the
Facebook User
Mobile application
…and the mobile
application has access to
the same shared data if
the user is logged on to
Facebook as the same
user
v	
  
Our Media App’s wish-list of features
q  Upload & Download media files to/from S3 buckets
q  Grant anonymous but secure access to AWS resources in our account
q  Grant authenticated access for users that log in via Public Identity Providers
q  Send push notifications to mobile devices
q  Store the media library inventory in the cloud so it can be queried by many users
q  Provide partitioned access to the media library based on Public and Private views
q  Synchronise user data across devices
q  Make all this available across devices (iOS, Android, Kindle) and web
q  Convert uploaded video files to various mobile/web formats
v	
  
We covered a lot of ground
in this deep-dive session!
v	
  
Amazon Cognito
Amazon SNS Mobile Push
DynamoDB Connector
S3 Connector
SQS Connector
User identity &
data synchronization
service
Store any NoSQL data and
also map mobile OS specific
objects to DynamoDB tables
Powerful Cross-platform
Push notification service
Easily upload, download to S3 and
also pause, resume, and cancel
these operations
Access distributed buffering
and queuing service
AWS Mobile Services
v	
  
Amazon S3
Amazon Elastic Transcode Service
Amazon CloudFront
Amazon Elastic Beanstalk
Amazon Identity and Access Management
Online file storage
web service
Content Delivery Network
(CDN)
Highly scalable,
media transcoding
in the cloud
Platform as a Service (PaaS)
Securely control access to
AWS services and resources
for your users
AWS Services & Features
v	
  
Fully integrated AWS
mobile SDK
Cross-platform,
optimized for mobile
Automatically handles
intermittent and latent
network
AWS Mobile SDK
Reduced memory footprint
Common authentication
method across all services	
  
Online	
  Labs	
  |	
  Training	
  
Gain	
  confidence	
  and	
  hands-­‐on	
  
experience	
  with	
  AWS.	
  Watch	
  free	
  
Instruc;onal	
  Videos	
  and	
  explore	
  Self-­‐
Paced	
  Labs	
  
Instructor	
  Led	
  Classes	
  	
  
Learn	
  how	
  to	
  design,	
  deploy	
  and	
  operate	
  
highly	
  available,	
  cost-­‐effec;ve	
  and	
  
secure	
  applica;ons	
  on	
  AWS	
  in	
  courses	
  
led	
  by	
  qualified	
  AWS	
  instructors	
  
Validate	
  your	
  technical	
  exper;se	
  
with	
  AWS	
  and	
  use	
  prac;ce	
  exams	
  
to	
  help	
  you	
  prepare	
  for	
  AWS	
  
Cer;fica;on	
  
AWS	
  Cer9fica9on	
  	
  
h<p://aws.amazon.com/training	
  	
  
v	
  
Thank	
  You	
  

More Related Content

What's hot

AWS September Webinar Series - Build Cross-Platform Mobile Apps with AWS and...
AWS September Webinar Series -  Build Cross-Platform Mobile Apps with AWS and...AWS September Webinar Series -  Build Cross-Platform Mobile Apps with AWS and...
AWS September Webinar Series - Build Cross-Platform Mobile Apps with AWS and...Amazon Web Services
 
Build Your Mobile App Faster with AWS Mobile Services
Build Your Mobile App Faster with AWS Mobile ServicesBuild Your Mobile App Faster with AWS Mobile Services
Build Your Mobile App Faster with AWS Mobile ServicesAmazon Web Services
 
Build Your Mobile App Faster with AWS Mobile Services
Build Your Mobile App Faster with AWS Mobile ServicesBuild Your Mobile App Faster with AWS Mobile Services
Build Your Mobile App Faster with AWS Mobile ServicesAmazon Web Services
 
Build Your Mobile App Faster with AWS Mobile Services (Part 1 - AWS)
Build Your Mobile App Faster with AWS Mobile Services (Part 1 - AWS)Build Your Mobile App Faster with AWS Mobile Services (Part 1 - AWS)
Build Your Mobile App Faster with AWS Mobile Services (Part 1 - AWS)Amazon Web Services
 
(MBL202) Mobile State of the Union: Mobile Apps Powered by AWS
(MBL202) Mobile State of the Union: Mobile Apps Powered by AWS(MBL202) Mobile State of the Union: Mobile Apps Powered by AWS
(MBL202) Mobile State of the Union: Mobile Apps Powered by AWSAmazon Web Services
 
Deep-Dive: Building Native iOS and Android Application with the AWS Mobile SDK
Deep-Dive: Building Native iOS and Android Application with the AWS Mobile SDKDeep-Dive: Building Native iOS and Android Application with the AWS Mobile SDK
Deep-Dive: Building Native iOS and Android Application with the AWS Mobile SDKAmazon Web Services
 
Mobile App Development with Amazon Web Services Mobile Hub
Mobile App Development with Amazon Web Services Mobile HubMobile App Development with Amazon Web Services Mobile Hub
Mobile App Development with Amazon Web Services Mobile HubAmazon Web Services
 
Engage your users with Amazon SNS Mobile Push (Now with Broadcast) - Jinesh V...
Engage your users with Amazon SNS Mobile Push (Now with Broadcast) - Jinesh V...Engage your users with Amazon SNS Mobile Push (Now with Broadcast) - Jinesh V...
Engage your users with Amazon SNS Mobile Push (Now with Broadcast) - Jinesh V...Amazon Web Services
 
Building Cloud-powered Mobile Apps
Building Cloud-powered Mobile AppsBuilding Cloud-powered Mobile Apps
Building Cloud-powered Mobile AppsDanilo Poccia
 
Build Your Mobile App Faster with AWS Mobile Services
Build Your Mobile App Faster with AWS Mobile ServicesBuild Your Mobile App Faster with AWS Mobile Services
Build Your Mobile App Faster with AWS Mobile ServicesAmazon Web Services
 
Integrating an App with Amazon Web Services SimpleDB - A Matter of Choices
Integrating an App with Amazon Web Services SimpleDB - A Matter of ChoicesIntegrating an App with Amazon Web Services SimpleDB - A Matter of Choices
Integrating an App with Amazon Web Services SimpleDB - A Matter of ChoicesMark Maslyn
 
Build Your Mobile App with AWS Mobile Services
Build Your Mobile App with AWS Mobile ServicesBuild Your Mobile App with AWS Mobile Services
Build Your Mobile App with AWS Mobile ServicesAmazon Web Services
 
AWS April Webinar Series - Easily Build and Scale Mobile Apps with AWS Mobile...
AWS April Webinar Series - Easily Build and Scale Mobile Apps with AWS Mobile...AWS April Webinar Series - Easily Build and Scale Mobile Apps with AWS Mobile...
AWS April Webinar Series - Easily Build and Scale Mobile Apps with AWS Mobile...Amazon Web Services
 
Day 2 - Delivering Media Mobile Apps Using the AWS Mobile & Javascript SDKs
Day 2 - Delivering Media Mobile Apps Using the AWS Mobile & Javascript SDKsDay 2 - Delivering Media Mobile Apps Using the AWS Mobile & Javascript SDKs
Day 2 - Delivering Media Mobile Apps Using the AWS Mobile & Javascript SDKsAmazon Web Services
 
Building Cloud-Powered Mobile Apps
Building Cloud-Powered Mobile AppsBuilding Cloud-Powered Mobile Apps
Building Cloud-Powered Mobile AppsDanilo Poccia
 
Add User Sign in and Management to your Apps with Amazon Cognito
Add User Sign in and Management to your Apps with Amazon CognitoAdd User Sign in and Management to your Apps with Amazon Cognito
Add User Sign in and Management to your Apps with Amazon CognitoAmazon Web Services
 
AWS Mobile Hub - Building Mobile Apps with AWS
AWS Mobile Hub - Building Mobile Apps with AWSAWS Mobile Hub - Building Mobile Apps with AWS
AWS Mobile Hub - Building Mobile Apps with AWSAmazon Web Services
 

What's hot (20)

AWS September Webinar Series - Build Cross-Platform Mobile Apps with AWS and...
AWS September Webinar Series -  Build Cross-Platform Mobile Apps with AWS and...AWS September Webinar Series -  Build Cross-Platform Mobile Apps with AWS and...
AWS September Webinar Series - Build Cross-Platform Mobile Apps with AWS and...
 
Build Your Mobile App Faster with AWS Mobile Services
Build Your Mobile App Faster with AWS Mobile ServicesBuild Your Mobile App Faster with AWS Mobile Services
Build Your Mobile App Faster with AWS Mobile Services
 
Build Your Mobile App Faster with AWS Mobile Services
Build Your Mobile App Faster with AWS Mobile ServicesBuild Your Mobile App Faster with AWS Mobile Services
Build Your Mobile App Faster with AWS Mobile Services
 
Build Your Mobile App Faster with AWS Mobile Services (Part 1 - AWS)
Build Your Mobile App Faster with AWS Mobile Services (Part 1 - AWS)Build Your Mobile App Faster with AWS Mobile Services (Part 1 - AWS)
Build Your Mobile App Faster with AWS Mobile Services (Part 1 - AWS)
 
(MBL202) Mobile State of the Union: Mobile Apps Powered by AWS
(MBL202) Mobile State of the Union: Mobile Apps Powered by AWS(MBL202) Mobile State of the Union: Mobile Apps Powered by AWS
(MBL202) Mobile State of the Union: Mobile Apps Powered by AWS
 
Deep-Dive: Building Native iOS and Android Application with the AWS Mobile SDK
Deep-Dive: Building Native iOS and Android Application with the AWS Mobile SDKDeep-Dive: Building Native iOS and Android Application with the AWS Mobile SDK
Deep-Dive: Building Native iOS and Android Application with the AWS Mobile SDK
 
Mobile App Development with Amazon Web Services Mobile Hub
Mobile App Development with Amazon Web Services Mobile HubMobile App Development with Amazon Web Services Mobile Hub
Mobile App Development with Amazon Web Services Mobile Hub
 
Engage your users with Amazon SNS Mobile Push (Now with Broadcast) - Jinesh V...
Engage your users with Amazon SNS Mobile Push (Now with Broadcast) - Jinesh V...Engage your users with Amazon SNS Mobile Push (Now with Broadcast) - Jinesh V...
Engage your users with Amazon SNS Mobile Push (Now with Broadcast) - Jinesh V...
 
Building Cloud-powered Mobile Apps
Building Cloud-powered Mobile AppsBuilding Cloud-powered Mobile Apps
Building Cloud-powered Mobile Apps
 
Build Your Mobile App Faster with AWS Mobile Services
Build Your Mobile App Faster with AWS Mobile ServicesBuild Your Mobile App Faster with AWS Mobile Services
Build Your Mobile App Faster with AWS Mobile Services
 
Integrating an App with Amazon Web Services SimpleDB - A Matter of Choices
Integrating an App with Amazon Web Services SimpleDB - A Matter of ChoicesIntegrating an App with Amazon Web Services SimpleDB - A Matter of Choices
Integrating an App with Amazon Web Services SimpleDB - A Matter of Choices
 
Building mobile apps on AWS
Building mobile apps on AWSBuilding mobile apps on AWS
Building mobile apps on AWS
 
Build Your Mobile App with AWS Mobile Services
Build Your Mobile App with AWS Mobile ServicesBuild Your Mobile App with AWS Mobile Services
Build Your Mobile App with AWS Mobile Services
 
AWS April Webinar Series - Easily Build and Scale Mobile Apps with AWS Mobile...
AWS April Webinar Series - Easily Build and Scale Mobile Apps with AWS Mobile...AWS April Webinar Series - Easily Build and Scale Mobile Apps with AWS Mobile...
AWS April Webinar Series - Easily Build and Scale Mobile Apps with AWS Mobile...
 
AWS Mobile Hub Overview
AWS Mobile Hub OverviewAWS Mobile Hub Overview
AWS Mobile Hub Overview
 
Day 2 - Delivering Media Mobile Apps Using the AWS Mobile & Javascript SDKs
Day 2 - Delivering Media Mobile Apps Using the AWS Mobile & Javascript SDKsDay 2 - Delivering Media Mobile Apps Using the AWS Mobile & Javascript SDKs
Day 2 - Delivering Media Mobile Apps Using the AWS Mobile & Javascript SDKs
 
Amazon Cognito
Amazon CognitoAmazon Cognito
Amazon Cognito
 
Building Cloud-Powered Mobile Apps
Building Cloud-Powered Mobile AppsBuilding Cloud-Powered Mobile Apps
Building Cloud-Powered Mobile Apps
 
Add User Sign in and Management to your Apps with Amazon Cognito
Add User Sign in and Management to your Apps with Amazon CognitoAdd User Sign in and Management to your Apps with Amazon Cognito
Add User Sign in and Management to your Apps with Amazon Cognito
 
AWS Mobile Hub - Building Mobile Apps with AWS
AWS Mobile Hub - Building Mobile Apps with AWSAWS Mobile Hub - Building Mobile Apps with AWS
AWS Mobile Hub - Building Mobile Apps with AWS
 

Viewers also liked

Mobile library
Mobile libraryMobile library
Mobile libraryJennyFink
 
AWS CodeDeploy: Manage Deployment Complexity
AWS CodeDeploy: Manage Deployment ComplexityAWS CodeDeploy: Manage Deployment Complexity
AWS CodeDeploy: Manage Deployment ComplexityAmazon Web Services
 
Deep Dive - Maximising EC2 & EBS Performance
Deep Dive - Maximising EC2 & EBS PerformanceDeep Dive - Maximising EC2 & EBS Performance
Deep Dive - Maximising EC2 & EBS PerformanceAmazon Web Services
 
Common Workloads on the AWS Cloud
Common Workloads on the AWS CloudCommon Workloads on the AWS Cloud
Common Workloads on the AWS CloudAmazon Web Services
 
AWS Webcast - Business Continuity in the AWS Cloud
AWS Webcast - Business Continuity in the AWS CloudAWS Webcast - Business Continuity in the AWS Cloud
AWS Webcast - Business Continuity in the AWS CloudAmazon Web Services
 
Integrate Social Login Into Mobile Apps (SEC401) | AWS re:Invent 2013
Integrate Social Login Into Mobile Apps (SEC401) | AWS re:Invent 2013Integrate Social Login Into Mobile Apps (SEC401) | AWS re:Invent 2013
Integrate Social Login Into Mobile Apps (SEC401) | AWS re:Invent 2013Amazon Web Services
 
Top 5 Ways to Optimize for Cost Efficiency with the Cloud
Top 5 Ways to Optimize for Cost Efficiency with the CloudTop 5 Ways to Optimize for Cost Efficiency with the Cloud
Top 5 Ways to Optimize for Cost Efficiency with the CloudAmazon Web Services
 
Managing Your Application Lifecycle on AWS: Continuous Integration and Deploy...
Managing Your Application Lifecycle on AWS: Continuous Integration and Deploy...Managing Your Application Lifecycle on AWS: Continuous Integration and Deploy...
Managing Your Application Lifecycle on AWS: Continuous Integration and Deploy...Amazon Web Services
 
IT in the Jungle - Session Sponsored by Eagle IT
IT in the Jungle - Session Sponsored by Eagle ITIT in the Jungle - Session Sponsored by Eagle IT
IT in the Jungle - Session Sponsored by Eagle ITAmazon Web Services
 
Encryption and Key Management in AWS
Encryption and Key Management in AWSEncryption and Key Management in AWS
Encryption and Key Management in AWSAmazon Web Services
 
Building and Growing SaaS on AWS for Partners
Building and Growing SaaS on AWS for PartnersBuilding and Growing SaaS on AWS for Partners
Building and Growing SaaS on AWS for PartnersAmazon Web Services
 
Deep Dive - Amazon Elastic MapReduce (EMR)
Deep Dive - Amazon Elastic MapReduce (EMR)Deep Dive - Amazon Elastic MapReduce (EMR)
Deep Dive - Amazon Elastic MapReduce (EMR)Amazon Web Services
 
深入淺出 AWS 大數據工具
深入淺出 AWS 大數據工具深入淺出 AWS 大數據工具
深入淺出 AWS 大數據工具Amazon Web Services
 

Viewers also liked (15)

Mobile library
Mobile libraryMobile library
Mobile library
 
Mobile Services for Your Library
Mobile Services for Your LibraryMobile Services for Your Library
Mobile Services for Your Library
 
AWS CodeDeploy: Manage Deployment Complexity
AWS CodeDeploy: Manage Deployment ComplexityAWS CodeDeploy: Manage Deployment Complexity
AWS CodeDeploy: Manage Deployment Complexity
 
MicroServices sur AWS
MicroServices sur AWSMicroServices sur AWS
MicroServices sur AWS
 
Deep Dive - Maximising EC2 & EBS Performance
Deep Dive - Maximising EC2 & EBS PerformanceDeep Dive - Maximising EC2 & EBS Performance
Deep Dive - Maximising EC2 & EBS Performance
 
Common Workloads on the AWS Cloud
Common Workloads on the AWS CloudCommon Workloads on the AWS Cloud
Common Workloads on the AWS Cloud
 
AWS Webcast - Business Continuity in the AWS Cloud
AWS Webcast - Business Continuity in the AWS CloudAWS Webcast - Business Continuity in the AWS Cloud
AWS Webcast - Business Continuity in the AWS Cloud
 
Integrate Social Login Into Mobile Apps (SEC401) | AWS re:Invent 2013
Integrate Social Login Into Mobile Apps (SEC401) | AWS re:Invent 2013Integrate Social Login Into Mobile Apps (SEC401) | AWS re:Invent 2013
Integrate Social Login Into Mobile Apps (SEC401) | AWS re:Invent 2013
 
Top 5 Ways to Optimize for Cost Efficiency with the Cloud
Top 5 Ways to Optimize for Cost Efficiency with the CloudTop 5 Ways to Optimize for Cost Efficiency with the Cloud
Top 5 Ways to Optimize for Cost Efficiency with the Cloud
 
Managing Your Application Lifecycle on AWS: Continuous Integration and Deploy...
Managing Your Application Lifecycle on AWS: Continuous Integration and Deploy...Managing Your Application Lifecycle on AWS: Continuous Integration and Deploy...
Managing Your Application Lifecycle on AWS: Continuous Integration and Deploy...
 
IT in the Jungle - Session Sponsored by Eagle IT
IT in the Jungle - Session Sponsored by Eagle ITIT in the Jungle - Session Sponsored by Eagle IT
IT in the Jungle - Session Sponsored by Eagle IT
 
Encryption and Key Management in AWS
Encryption and Key Management in AWSEncryption and Key Management in AWS
Encryption and Key Management in AWS
 
Building and Growing SaaS on AWS for Partners
Building and Growing SaaS on AWS for PartnersBuilding and Growing SaaS on AWS for Partners
Building and Growing SaaS on AWS for Partners
 
Deep Dive - Amazon Elastic MapReduce (EMR)
Deep Dive - Amazon Elastic MapReduce (EMR)Deep Dive - Amazon Elastic MapReduce (EMR)
Deep Dive - Amazon Elastic MapReduce (EMR)
 
深入淺出 AWS 大數據工具
深入淺出 AWS 大數據工具深入淺出 AWS 大數據工具
深入淺出 AWS 大數據工具
 

Similar to Build Mobile Apps with AWS SDKs

Building Mobile Apps on AWS at Websummit Diublin
Building Mobile Apps on AWS at Websummit DiublinBuilding Mobile Apps on AWS at Websummit Diublin
Building Mobile Apps on AWS at Websummit DiublinAmazon Web Services
 
AWS Cloud Kata 2014 | Jakarta - 2-2 Mobile
AWS Cloud Kata 2014 | Jakarta - 2-2 MobileAWS Cloud Kata 2014 | Jakarta - 2-2 Mobile
AWS Cloud Kata 2014 | Jakarta - 2-2 MobileAmazon Web Services
 
AWS Webinar - 201 Developing mobile apps with AWS
AWS Webinar - 201 Developing mobile apps with AWSAWS Webinar - 201 Developing mobile apps with AWS
AWS Webinar - 201 Developing mobile apps with AWSAmazon Web Services
 
(MBL302) Mastering Synchronization Across Mobile Devices, Login Providers, an...
(MBL302) Mastering Synchronization Across Mobile Devices, Login Providers, an...(MBL302) Mastering Synchronization Across Mobile Devices, Login Providers, an...
(MBL302) Mastering Synchronization Across Mobile Devices, Login Providers, an...Amazon Web Services
 
Building Cloud-powered Mobile Apps
Building Cloud-powered Mobile AppsBuilding Cloud-powered Mobile Apps
Building Cloud-powered Mobile AppsDanilo Poccia
 
02 cloud poweredmobileappsonaws_short
02 cloud poweredmobileappsonaws_short02 cloud poweredmobileappsonaws_short
02 cloud poweredmobileappsonaws_shortCodemotion
 
Cloud-powered Cross-platform Mobile Apps on AWS
Cloud-powered Cross-platform Mobile Apps on AWSCloud-powered Cross-platform Mobile Apps on AWS
Cloud-powered Cross-platform Mobile Apps on AWSDanilo Poccia
 
(GAM401) Build a Serverless Mobile Game w/ Cognito, Lambda & DynamoDB
(GAM401) Build a Serverless Mobile Game w/ Cognito, Lambda & DynamoDB(GAM401) Build a Serverless Mobile Game w/ Cognito, Lambda & DynamoDB
(GAM401) Build a Serverless Mobile Game w/ Cognito, Lambda & DynamoDBAmazon Web Services
 
Add End User Sign-in, User Management, and Security to Your Mobile and Web Ap...
Add End User Sign-in, User Management, and Security to Your Mobile and Web Ap...Add End User Sign-in, User Management, and Security to Your Mobile and Web Ap...
Add End User Sign-in, User Management, and Security to Your Mobile and Web Ap...Amazon Web Services
 
Deep Dive on Amazon Cognito - DevDay Los Angeles 2017
Deep Dive on Amazon Cognito - DevDay Los Angeles 2017Deep Dive on Amazon Cognito - DevDay Los Angeles 2017
Deep Dive on Amazon Cognito - DevDay Los Angeles 2017Amazon Web Services
 
Deep Dive on Amazon Cognito - DevDay Austin 2017
Deep Dive on Amazon Cognito - DevDay Austin 2017Deep Dive on Amazon Cognito - DevDay Austin 2017
Deep Dive on Amazon Cognito - DevDay Austin 2017Amazon Web Services
 
Build and Deploy Your Mobile Games
Build and Deploy Your Mobile Games Build and Deploy Your Mobile Games
Build and Deploy Your Mobile Games Amazon Web Services
 
Journey Through the Cloud - Mobile & Social Apps
Journey Through the Cloud - Mobile & Social AppsJourney Through the Cloud - Mobile & Social Apps
Journey Through the Cloud - Mobile & Social AppsAmazon Web Services
 
Managing Identity and Securing Your Mobile and Web Applications with Amazon C...
Managing Identity and Securing Your Mobile and Web Applications with Amazon C...Managing Identity and Securing Your Mobile and Web Applications with Amazon C...
Managing Identity and Securing Your Mobile and Web Applications with Amazon C...Amazon Web Services
 
amazon-cognito-auth-in-minutes
amazon-cognito-auth-in-minutesamazon-cognito-auth-in-minutes
amazon-cognito-auth-in-minutesVladimir Budilov
 
Developing Connected Applications with AWS IoT - Technical 301
Developing Connected Applications with AWS IoT - Technical 301Developing Connected Applications with AWS IoT - Technical 301
Developing Connected Applications with AWS IoT - Technical 301Amazon Web Services
 
Raleigh DevDay 2017: Managing User Onboarding, Sign-up, Sign-in, Identity and...
Raleigh DevDay 2017: Managing User Onboarding, Sign-up, Sign-in, Identity and...Raleigh DevDay 2017: Managing User Onboarding, Sign-up, Sign-in, Identity and...
Raleigh DevDay 2017: Managing User Onboarding, Sign-up, Sign-in, Identity and...Amazon Web Services
 

Similar to Build Mobile Apps with AWS SDKs (20)

Building Mobile Apps on AWS at Websummit Diublin
Building Mobile Apps on AWS at Websummit DiublinBuilding Mobile Apps on AWS at Websummit Diublin
Building Mobile Apps on AWS at Websummit Diublin
 
Building mobile apps on aws
Building mobile apps on awsBuilding mobile apps on aws
Building mobile apps on aws
 
AWS Cloud Kata 2014 | Jakarta - 2-2 Mobile
AWS Cloud Kata 2014 | Jakarta - 2-2 MobileAWS Cloud Kata 2014 | Jakarta - 2-2 Mobile
AWS Cloud Kata 2014 | Jakarta - 2-2 Mobile
 
AWS Webinar - 201 Developing mobile apps with AWS
AWS Webinar - 201 Developing mobile apps with AWSAWS Webinar - 201 Developing mobile apps with AWS
AWS Webinar - 201 Developing mobile apps with AWS
 
(MBL302) Mastering Synchronization Across Mobile Devices, Login Providers, an...
(MBL302) Mastering Synchronization Across Mobile Devices, Login Providers, an...(MBL302) Mastering Synchronization Across Mobile Devices, Login Providers, an...
(MBL302) Mastering Synchronization Across Mobile Devices, Login Providers, an...
 
Building Cloud-powered Mobile Apps
Building Cloud-powered Mobile AppsBuilding Cloud-powered Mobile Apps
Building Cloud-powered Mobile Apps
 
02 cloud poweredmobileappsonaws_short
02 cloud poweredmobileappsonaws_short02 cloud poweredmobileappsonaws_short
02 cloud poweredmobileappsonaws_short
 
Cloud-powered Cross-platform Mobile Apps on AWS
Cloud-powered Cross-platform Mobile Apps on AWSCloud-powered Cross-platform Mobile Apps on AWS
Cloud-powered Cross-platform Mobile Apps on AWS
 
Mobile on AWS
Mobile on AWSMobile on AWS
Mobile on AWS
 
(GAM401) Build a Serverless Mobile Game w/ Cognito, Lambda & DynamoDB
(GAM401) Build a Serverless Mobile Game w/ Cognito, Lambda & DynamoDB(GAM401) Build a Serverless Mobile Game w/ Cognito, Lambda & DynamoDB
(GAM401) Build a Serverless Mobile Game w/ Cognito, Lambda & DynamoDB
 
Getting Started with AWS IoT
Getting Started with AWS IoTGetting Started with AWS IoT
Getting Started with AWS IoT
 
Add End User Sign-in, User Management, and Security to Your Mobile and Web Ap...
Add End User Sign-in, User Management, and Security to Your Mobile and Web Ap...Add End User Sign-in, User Management, and Security to Your Mobile and Web Ap...
Add End User Sign-in, User Management, and Security to Your Mobile and Web Ap...
 
Deep Dive on Amazon Cognito - DevDay Los Angeles 2017
Deep Dive on Amazon Cognito - DevDay Los Angeles 2017Deep Dive on Amazon Cognito - DevDay Los Angeles 2017
Deep Dive on Amazon Cognito - DevDay Los Angeles 2017
 
Deep Dive on Amazon Cognito - DevDay Austin 2017
Deep Dive on Amazon Cognito - DevDay Austin 2017Deep Dive on Amazon Cognito - DevDay Austin 2017
Deep Dive on Amazon Cognito - DevDay Austin 2017
 
Build and Deploy Your Mobile Games
Build and Deploy Your Mobile Games Build and Deploy Your Mobile Games
Build and Deploy Your Mobile Games
 
Journey Through the Cloud - Mobile & Social Apps
Journey Through the Cloud - Mobile & Social AppsJourney Through the Cloud - Mobile & Social Apps
Journey Through the Cloud - Mobile & Social Apps
 
Managing Identity and Securing Your Mobile and Web Applications with Amazon C...
Managing Identity and Securing Your Mobile and Web Applications with Amazon C...Managing Identity and Securing Your Mobile and Web Applications with Amazon C...
Managing Identity and Securing Your Mobile and Web Applications with Amazon C...
 
amazon-cognito-auth-in-minutes
amazon-cognito-auth-in-minutesamazon-cognito-auth-in-minutes
amazon-cognito-auth-in-minutes
 
Developing Connected Applications with AWS IoT - Technical 301
Developing Connected Applications with AWS IoT - Technical 301Developing Connected Applications with AWS IoT - Technical 301
Developing Connected Applications with AWS IoT - Technical 301
 
Raleigh DevDay 2017: Managing User Onboarding, Sign-up, Sign-in, Identity and...
Raleigh DevDay 2017: Managing User Onboarding, Sign-up, Sign-in, Identity and...Raleigh DevDay 2017: Managing User Onboarding, Sign-up, Sign-in, Identity and...
Raleigh DevDay 2017: Managing User Onboarding, Sign-up, Sign-in, Identity and...
 

More from Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Recently uploaded

FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCR
FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCRFULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCR
FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCRnishacall1
 
BDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort ServiceDelhi Call girls
 
9892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x79892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x7Pooja Nehwal
 
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun serviceCALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun serviceanilsa9823
 
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual serviceanilsa9823
 
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,Pooja Nehwal
 
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost LoverPowerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost LoverPsychicRuben LoveSpells
 

Recently uploaded (7)

FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCR
FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCRFULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCR
FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCR
 
BDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort Service
 
9892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x79892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x7
 
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun serviceCALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
 
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
 
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
 
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost LoverPowerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
 

Build Mobile Apps with AWS SDKs

  • 1. v   Building Mobile and Web Apps using the AWS Mobile and Javascript SDKs Parijat Mishra | Solutions Architect | Amazon Web Services parijat@amazon.com
  • 2. v   In this session, we’ll be creating Android apps to demonstrate various features of AWS
  • 3. v   How do we build mobile apps today?
  • 4. v   Authenticate  users Authorize access Analyze User Behavior Store and share media Synchronize data Deliver media Store shared data Stream real-time dataTrack Retention Send push notifications Manage users and identity providers Securely access cloud resources Sync user prefs across devices Track active users, engagement Manage funnels, Campaign performances Store user-generated photos Media and share them Automatically detect mobile devices Deliver content quickly globally Bring users back to your app by sending messages reliably Store and query fast NoSQL data across users and devices Collect real-time clickstream logs and take actions quickly Your Mobile App Your mobile application
  • 5. v   Introducing AWS Mobile Services Amazon Cognito Amazon Mobile Analytics Amazon SNS Mobile Push Kinesis Connector DynamoDB Connector S3 Connector SQS Connector SES Connector AWS Global Infrastructure (11 Regions, 28 Availability Zones, 52 Edge Locations) Core Building Block Services Mobile Optimized Connectors Mobile Optimized Services Your Mobile App, Game or Device App AWS Mobile SDK, API Endpoints, Management Console Compute Storage Networking Analytics Databases Integrated SDK
  • 6. v   Fully integrated AWS mobile SDK Cross-platform, optimized for mobile Automatically handles intermittent and latent network AWS Mobile SDK Reduced memory footprint Common authentication method across all services  
  • 7. v   Authenticate  users Authorize access Analyze User Behavior Store and share media Synchronize data Deliver media Store shared data Stream real-time dataTrack Retention Send push notifications Manage users and identity providers Securely access cloud resources Sync user prefs across devices Track active users, engagement Manage funnels, Campaign performances Store user-generated photos Media and share them Automatically detect mobile devices Deliver content quickly globally Bring users back to your app by sending messages reliably Store and query fast NoSQL data across users and devices Collect real-time clickstream logs and take actions quickly Your Mobile App Your mobile application
  • 8. v   Authenticate  users Authorize access Analyze User Behavior Store and share media Synchronize data Deliver media Store shared data Stream real-time dataTrack Retention Send push notifications Amazon Cognito (Identity broker) AWS Identity and Access Management Amazon Cognito (Sync) Amazon Mobile Analytics Amazon Mobile Analytics Amazon S3 Transfer Manager Amazon CloudFront (Device Detection) Amazon SNS Mobile Push Amazon DynamoDB (Object Mapper) Amazon Kinesis (Recorder) Your mobile application with the AWS Mobile SDK
  • 9. v   Let’s build a Media App! What should it do?
  • 10. v   Our Media App’s wish-list of features q  Upload & Download media files to/from S3 buckets q  Grant anonymous but secure access to AWS resources in our account q  Grant authenticated access for users that log in via Public Identity Providers q  Send push notifications to mobile devices q  Store the media library inventory in the cloud so it can be queried by many users q  Provide partitioned access to the media library based on Public and Private views q  Synchronise user data across devices q  Make all this available across devices (iOS, Android, Kindle) and web
  • 11. v   •  Goals: •  User is anonymous – we don’t care who they are, treat them as ‘Public’ or ‘Guest’ •  Directly access AWS Simple Storage Service (S3) from the mobile application •  We do not want to upload to a server and then have the server push the file to S3… •  Requirements: •  We need to authenticate the application on the mobile device •  We do not want to bake the AWS credentials in our mobile app! •  Even though users are anonymous, we still want to control access to AWS First App: Basic Download/Upload App
  • 12. v   Mobile App S3 Bucket with test media Cognito Identity First App: Basic Download/Upload App
  • 13. v   Amazon Cognito Granting ‘guest’ access to our ‘Public’ users for controlled access to AWS resources
  • 14. v   Cognito Identity Example Cognito Identity for Guests Cognito assigns a unique identifier for each device when a user is not logged on Cognito Identity for Authenticated Users Cognito assigns a unique identifier for each user when they are authenticated. This will be the same identifier for this user regardless of which device they use
  • 16. v   Create a new Cognito Identity Pool
  • 17. v   Create a new Cognito Identity Pool Supplying public identity providers is optional For this demo, we will not be supporting public identity providers, so we leave them empty
  • 18. v   Create a new Cognito Identity Pool Enable guest access For this demo, we will allow ‘anonymous access’ so that unauthenticated users can upload and download from our S3 bucket
  • 19. v   Create a new Cognito Identity Pool Create IAM Roles Create IAM roles for this Cognito Identity Pool. We will assign tight security controls to these roles later
  • 20. v   Create a new Cognito Identity Pool And assign a role for unauthenticated access
  • 21. v   Create a new Cognito Identity Pool Starter code samples Cognito conveniently provides starter code for you for Android, iOS and .Net! This is an example of how you can easily connect your app to Cognito
  • 22. v   Setup the required permissions in IAM
  • 23. v   Setup the required permissions in IAM Note the default policy
  • 24. v   Setup the required permissions in IAM Default policy created by Cognito By default, access to Cognito Sync and Mobile Analytics is permitted. This policy has been generated by the Cognito Create Identity Pool wizard
  • 25. v   Media in our S3 bucket S3 Bucket contents Test file that we will be downloading via the TransferManager S3 connector
  • 26. v   S3 Bucket ACLs Note that the ACLs on the bucket do not permit ‘Public’ so the asset is not world-accessible Media in our S3 bucket
  • 27. v   Let’s give the anonymous ‘guest’ access to our S3 bucket for read and write
  • 28. v   Setup the required permissions in IAM Use the Policy Generator We’ll create our specific S3- related policy using the Policy Generator
  • 29. v   Setup the required permissions in IAM Specify our bucket Our policy will specify access for our specific bucket. We’ll allow GetObject and PutObject
  • 30. v   Setup the required permissions in IAM Resulting Policy Document Here’s what the resulting policy looks like for allowing READ access to any object in the specific bucket, and the ability to WRITE any object
  • 31. v   We’re now set up – let’s start coding!
  • 32. v   Instantiate Cognito Credentials Provider Give Cognito your details •  Account Id •  Identity Pool ARN •  UnAuthenticated access Role ARN •  Authenticated access Role ARN •  The Region you are running Cognito in
  • 33. v   Implementation Note! This ‘Cognito’ class is just my convenience wrapper! I have chosen to implement this as a Singleton at App-scope Your implementation may be different The only important thing is that you instantiate a CognitoCachingCredentialsProvider
  • 34. v   S3 Connector •  Multipart upload media (photos, videos, audio) •  Fault tolerant download (e.g. assets) •  No backend required •  Automatic retries •  Pause, resume, cancel functions •  Optimized for native OS Amazon S3 Connector: Transfer Manager
  • 35. v   Pass Cognito Credentials to the AWS S3 Transfer Manager constructor Pass the Cognito Provider to the TransferManager S3 connector to construct based on the Cognito-acquired AWS credentials
  • 36. v   Set up the download request and go! Initiate the download
  • 37. v   Demo App First, the Application instantiates a CognitoCachingCredentialsProvider() Then initiates a download, followed by an upload
  • 38. v   Our Media App’s wish-list of features q  Upload & Download media files to/from S3 buckets q  Grant anonymous but secure access to AWS resources in our account q  Grant authenticated access for users that log in via Public Identity Providers q  Send push notifications to mobile devices q  Store the media library inventory in the cloud so it can be queried by many users q  Provide partitioned access to the media library based on Public and Private views q  Synchronise user data across devices q  Make all this available across devices (iOS, Android, Kindle) and web q  Convert uploaded video files to various mobile/web formats
  • 39. v   Amazon Cognito Now let’s authenticate our users via public identity providers
  • 40. v   •  Goals: •  User can be anonymous or they can choose to sign-in via Facebook •  If they are anonymous, we let them see a ‘Public’ view of the media library •  If they choose to sign-in, we let them see their own ‘Private’ view of the library •  Requirements: •  We will use Cognito to help with the Public and Private authentication •  Again, no AWS credentials in our mobile app! •  We want to enforce Fine-Grained Access Control on the database views Implement Public & Private views
  • 41. v   User ID (Temp Credentials) DynamoDB End Users Developer App w/SDK Access to AWS Services Cognito Identity Broker Login OAUTH/OpenID Access Token Cognito ID, Temp Credentials S3 Mobile Analytics Cognito Sync Store AWS Management Console Access Token Pool ID Role ARNs Amazon Cognito Security Architecture
  • 42. v   Raw DynamoDB records example Range Key Each OwnerId has multiple Filenames Hash Key Each OwnerId identifies a user by their Cognito identity, or ‘public’ if they didn’t log on to Facebook
  • 43. v   Raw DynamoDB records example Inventory is partitioned based on the OwnerId ‘public’ is accessible to the ‘guest’ Cognito Identity Anything else must match the identity of the user accessing the application Assigned by Cognito automatically
  • 44. v   Use the DynamoDB Mapper Use the DynamoDB Mapper annotations to decorate your value object Specify the HashKey, RangeKey and the individual Attributes in your value object that should map to columns in the DynamoDB table
  • 45. v   For this demo, we’ll use Facebook as our Public Identity Provider
  • 46. v   Mobile App DynamoDB Implement Public & Private views OAUTH/OpenID Access Token Cognito Identity Broker Cognito ID, Temp Credentials Query for results filtered by OwnerId
  • 47. v   •  Great how-to https://developers.facebook.com/docs/ android/getting-started Using Facebook in your App
  • 48. v   Create an App on Facebook
  • 49. v   Create an App on Facebook
  • 50. v   Create an App on Facebook Cognito needs the App ID The App ID from Facebook is what binds the Identity Pool to the Facebook application
  • 51. v   Configure Cognito to use Facebook
  • 52. v   Add an Android application to FB
  • 53. v   Add an Android application to FB
  • 54. v   Add an Android application to FB Generate your signing hash from your development environment – check the documentation…
  • 55. v   We’re now set up – let’s start coding!
  • 56. v   Secure access to DynamoDB Simply instantiate the AmazonDynamoDBClient and specify your Cognito provider as the credential provider in the constructor
  • 57. v   Querying the DynamoDB table from code Querying the DynamoDB table is simple! The DynamoDB Mapper will map the columns in the table to the fields in your value object and return a typed list of records ready to iterate
  • 58. v   Demo App Guest access •  Connects to Cognito as anonymous user •  Gets AWS token and uses that to instantiate a DynamoDB client •  Queries DynamoDB using the key ‘public’ Authenticated access •  Gets token from Facebook •  Passes token to Cognito •  Impersonates authenticated user •  Queries DynamoDB using the key that matches the Cognito Identity of this user
  • 59. v   Raw DynamoDB records example Inventory is partitioned based on the OwnerId ‘public’ is accessible to the ‘guest’ Cognito Identity Anything else must match the identity of the user accessing the application
  • 60. v   FGAC on DynamoDB using IAM Fine-Grained Access Control (FGAC) •  Restrict which Actions can be called by the user •  Restrict which DynamoDB Tables can be accessed by the user •  Restrict which rows in the table are accessible by the user •  Control which fields are accessible in the query results
  • 61. v   FGAC on DynamoDB using IAM Control the actions the user can invoke The “Unauthenticated” Role Policy
  • 62. v   FGAC on DynamoDB using IAM Control the DynamoDB Table the user can access The “Unauthenticated” Role Policy
  • 63. v   FGAC on DynamoDB using IAM Restrict the Rows in the DynamoDB table the user can access The “Unauthenticated” Role Policy
  • 64. v   FGAC on DynamoDB using IAM Use the Cognito Id for this user to restrict the rows that will be accessible to the user The “Authenticated” Role Policy
  • 65. v   Our Media App’s wish-list of features q  Upload & Download media files to/from S3 buckets q  Grant anonymous but secure access to AWS resources in our account q  Grant authenticated access for users that log in via Public Identity Providers q  Send push notifications to mobile devices q  Store the media library inventory in the cloud so it can be queried by many users q  Provide partitioned access to the media library based on Public and Private views q  Synchronise user data across devices q  Make all this available across devices (iOS, Android, Kindle) and web q  Convert uploaded video files to various mobile/web formats
  • 66. v   Amazon SNS Push Notifications
  • 67. v   Each platform works differently, and push gets even more complex as you scale to support millions of devices. Cloud App Platform Services Mobile Apps SNS application targets
  • 68. v   Amazon SNS Cross-platform
 Mobile Push Apple APNS Google GCM Amazon ADM Windows WNS and MPNS Baidu CP With Amazon SNS, developers can send push notifications on multiple platforms and reach mobile users around the world Android Phones and Tablets Apple iPhones and iPads Kindle Fire Devices Android Phones and Tablets in China Windows Desktop and Phones SNS application targets Your application
 back-end
  • 69. v   •  Goals: •  Application automatically registers with Google Cloud Messaging (GCM) •  The device registration Id is then sent to SNS to register as a device endpoint •  The application then subscribes that device endpoint to a well-known SNS topic This topic is shared by all other devices using the application •  The application then confirms SNS Push Notifications are working by sending a message to itself via SNS. The user sees a pop-up message. •  Later, whenever a message is sent to the shared SNS Topic, all devices subscribed receive a pop-up notification Next App: SNS Push Notification App
  • 70. v   Mobile App Next App: SNS Push Notification App SNS Topic SNS Application ENDPOINT APP TOPIC Cognito Create Platform Endpoint Subscribe to topic Publish test message to our Endpoint Push notification from GCM SNS
  • 72. v   On the SNS Dashboard, create a new Topic
  • 73. v   On the SNS Dashboard, create a new Topic
  • 74. v   Note the Topic’s ARN We will need this in our code to subscribe the device to the topic so we can receive notifications On the SNS Dashboard, create a new Topic
  • 75. v   Create a Google API Project and obtain the Google Project ID  
  • 76. v   Enable GCM for Android
  • 77. v   Create the Server API Key
  • 78. v   Obtain the Server API Key from Google
  • 79. v   On the SNS Dashboard, create a new App
  • 80. v   Specify the API Key you got from Google
  • 81. v   Note the ARN for this SNS Application
  • 82. v   We’re now set up – let’s start coding!
  • 83. v   Instantiate Cognito Credentials Provider Give Cognito your details •  Account Id •  Identity Pool ARN •  UnAuthenticated access Role ARN •  Authenticated access Role ARN •  The Region you are running Cognito in
  • 84. v   Again, this ‘Cognito’ class is just my convenience wrapper implemented as a Singleton Instantiate SNS using Credentials from Cognito
  • 85. v   Get the device registration ID from GCM We’re requesting the device identifier/token for this unique device, against the Google Project Id we created earlier
  • 86. v   And register this device with the SNS App The ‘deviceIdentifier’ is the device token returned from GCM for this unique device
  • 87. v   Finally, subscribe the endpoint to the Topic The endpoint is the ARN you got back from the previous call to getEndpointArn()
  • 88. v   Demo App At startup, we register this device with the SNS Application Then we subscribe this device Endpoint to the global SNS Topic We then send a test message from the device to ourselves to confirm the round trip is working If we subsequently publish to the global SNS Topic, all devices subscribed will be notified
  • 89. v   Our Media App’s wish-list of features q  Upload & Download media files to/from S3 buckets q  Grant anonymous but secure access to AWS resources in our account q  Grant authenticated access for users that log in via Public Identity Providers q  Send push notifications to mobile devices q  Store the media library inventory in the cloud so it can be queried by many users q  Provide partitioned access to the media library based on Public and Private views q  Synchronise user data across devices q  Make all this available across devices (iOS, Android, Kindle) and web
  • 90. v   How did we initiate the sending of the Push Notification to the global SNS Topic? But wait!
  • 91. v   Demo web page to send Push Notifications Plain old Javascript and HTML! The website is a standard HTML site with Javascript. It is being served from S3, so no back-end servers The magic comes from the AWS Javascript SDK
  • 92. v   Demo web page to send Push Notifications Topic ARN This is the topic we subscribed our application to when it started up Cognito Role This is the IAM role we want to use – we’re using the unauthenticated ‘guest’ role in this demo Cognito Identity Pool ID This is the specific Cognito pool we want to use for authentication
  • 93. v   Demo web page to send Push Notifications
  • 94. v   Demo web page to send Push Notifications
  • 95. v   Our Media App’s wish-list of features q  Upload & Download media files to/from S3 buckets q  Grant anonymous but secure access to AWS resources in our account q  Grant authenticated access for users that log in via Public Identity Providers q  Send push notifications to mobile devices q  Store the media library inventory in the cloud so it can be queried by many users q  Provide partitioned access to the media library based on Public and Private views q  Synchronise user data across devices q  Make all this available across devices (iOS, Android, Kindle) and web
  • 96. v   Amazon Cognito Sharing data between devices
  • 97. v  •  Goals: •  User is authenticated with Facebook •  Each time they modify gadgets in the app, the state of the gadgets is synchronized with all other devices using the application (for that user account) •  Verify these shared data changes in a companion web page, where the user is also authenticated with Facebook, and is the same user principal Next App: Shared application data
  • 98. v   Add a Web application to FB
  • 99. v   Add a Web application to FB S3 bucket name We’re using S3 to serve the web site in this example, but you can use CloudFront, or EC2, or use a CNAME
  • 100. v   Javascript code to read Cognito Sync Data Instantiate the CognitoSync object It will inherit the Cognito credentials from those we obtained earlier from our call to CognitoIdentityCredentials()
  • 101. v   Javascript code to read Cognito Sync Data Specify our parameters We need to specify the DatasetName that we want to connect to, and the Cognito Identity information as shown
  • 102. v   Javascript code to read Cognito Sync Data Call CognitoSync::listRecords() …and provide our params and a callback
  • 103. v   Javascript code to read Cognito Sync Data OnSuccess() …iterate the results and do something interesting with the data records
  • 104. v   Demo App Web Page The web page has access to the shared data when authenticated as the Facebook User Mobile application …and the mobile application has access to the same shared data if the user is logged on to Facebook as the same user
  • 105. v   Our Media App’s wish-list of features q  Upload & Download media files to/from S3 buckets q  Grant anonymous but secure access to AWS resources in our account q  Grant authenticated access for users that log in via Public Identity Providers q  Send push notifications to mobile devices q  Store the media library inventory in the cloud so it can be queried by many users q  Provide partitioned access to the media library based on Public and Private views q  Synchronise user data across devices q  Make all this available across devices (iOS, Android, Kindle) and web q  Convert uploaded video files to various mobile/web formats
  • 106. v   We covered a lot of ground in this deep-dive session!
  • 107. v   Amazon Cognito Amazon SNS Mobile Push DynamoDB Connector S3 Connector SQS Connector User identity & data synchronization service Store any NoSQL data and also map mobile OS specific objects to DynamoDB tables Powerful Cross-platform Push notification service Easily upload, download to S3 and also pause, resume, and cancel these operations Access distributed buffering and queuing service AWS Mobile Services
  • 108. v   Amazon S3 Amazon Elastic Transcode Service Amazon CloudFront Amazon Elastic Beanstalk Amazon Identity and Access Management Online file storage web service Content Delivery Network (CDN) Highly scalable, media transcoding in the cloud Platform as a Service (PaaS) Securely control access to AWS services and resources for your users AWS Services & Features
  • 109. v   Fully integrated AWS mobile SDK Cross-platform, optimized for mobile Automatically handles intermittent and latent network AWS Mobile SDK Reduced memory footprint Common authentication method across all services  
  • 110. Online  Labs  |  Training   Gain  confidence  and  hands-­‐on   experience  with  AWS.  Watch  free   Instruc;onal  Videos  and  explore  Self-­‐ Paced  Labs   Instructor  Led  Classes     Learn  how  to  design,  deploy  and  operate   highly  available,  cost-­‐effec;ve  and   secure  applica;ons  on  AWS  in  courses   led  by  qualified  AWS  instructors   Validate  your  technical  exper;se   with  AWS  and  use  prac;ce  exams   to  help  you  prepare  for  AWS   Cer;fica;on   AWS  Cer9fica9on     h<p://aws.amazon.com/training