Azure Mobile Service - Techdays 2014

Preview:

DESCRIPTION

I present 3 key scenario to use Azure Mobile Service as your mobile app backend

Citation preview

Using Azure Mobile Services for Modern App Dev

Puja Pramudya, Microsoft MVP

Technology Director – Radya Labs Teknologi

We Are PASSIONATE About Mobile Apps

Add a cloud backend to your app in minutes without the need for server code

Agenda

1. Intro2. Data3. Authentication4. Push Notifications5. Q & A

Rich Feature SetConnected Apps

SDKs

Source control,

table scripts, custom API

&

Scheduler

Push Notifications

Store Data in the Cloud

User Authentication

Facebook Twitter Microsoft GoogleActive

Directory

SQL Table Storage

Blob Storage

WNS & MPNS

APNS GCM

Mongo DB

Windows Store iOSAndroid

Windows Phone 8iOSAndroidHTML 5/JS

REST API

Key Scenarios

Make your app engaging and dynamicPush notifications and Live Tiles is the premier way to engage your customers. Make your app engaging and dynamic using Mobile Services Push.

Rapid DevelopmentTime is money. Get your app up and running sooner when you use Mobile Services to configure a secure backend in less than five minutes.

Make your app socialWhether your customers use Google, Facebook, Twitter, or Microsoft Account, no matter what devices they run your app on, with Mobile Services you can makes your app social and personable fast.

DATA

Table scripts

• Automatic service REST API generated for storage

• Dynamic schema on/offitem.created = new Date();

• Server logic that intercepts CRUD operationsConnect to Windows Azure and third party

services

var azure = require(‘azure’);

var sendgrid = require(‘sendgrid’).SendGrid;

• Querying

Supported module

• mssql• request• console• push.*• tables• xml2js• statusCodes• Windows Azure Node SDK• Windows Store Partners (Sengrid, Twilio,

Pusher)

DEMOgetting started, working with data

AUTHENTICATION

Server flow

FACEBOOK

GOOGLE

TWITTER

MOBILE SERVICE

DEVICE

CREDENTIALS

MICROSOFT

IDENTITY AUTH

TOK

EN

Client flow

FACEBOOK

GOOGLE

TWITTER

MOBILE SERVICE

DEVICE

CREDENTIALS

MICROSOFTAUTH TOKEN

AUTH TOKEN

Authentication

• Out of the box support for Microsoft Account, Facebook, Twitter and Google• Connect to WA Active Directory through azure module and to on-prem ADFS from there• Table level permissions for each CRUD operation

Everyone, Anyone with Application Key, Only Authenticated users, or Only Scripts and Admins

• More granular control with server-side scriptsuser.level: {admin, authenticated, anonymous}

user.userID: id or undefined if not authenticated

DEMO configure authentication

PUSH

Push at scale

MPNS/WNS

APNS

GCM

MOBILE SERVICE

DEVICE

REGISTER CHANNEL

RECEIVE MESSAGES

NO

TIFI

CATI

ON

HU

B

SEND TO TAG

REGISTER CHANNEL WITH TAG

DEMO push notification

Recap

1. Use dynamic data and get out-of-the box API to work on

2. Leverage 3rd Auth and manage data access

3. Engage with Push, use notification hub

Source code : https://bitbucket.org/poedja_p/photolane-demo

Q & A

Call to Action

• Take Microsoft Virtual Academy (MVA) courses• Building Apps for Windows Phone 8 Jump

Start• Windows Phone 8.1 Developer for Absolute

Beginners

• Use Azure Trial (http://azure.microsoft.com/en-us/pricing/free-trial/)

Thank you

Recommended