23
Using Azure Mobile Services for Modern App Dev Puja Pramudya, Microsoft MVP Technology Director – Radya Labs Teknologi

Azure Mobile Service - Techdays 2014

Embed Size (px)

DESCRIPTION

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

Citation preview

Page 1: Azure Mobile Service - Techdays 2014

Using Azure Mobile Services for Modern App Dev

Puja Pramudya, Microsoft MVP

Technology Director – Radya Labs Teknologi

Page 2: Azure Mobile Service - Techdays 2014

We Are PASSIONATE About Mobile Apps

Page 3: Azure Mobile Service - Techdays 2014
Page 4: Azure Mobile Service - Techdays 2014

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

Page 5: Azure Mobile Service - Techdays 2014

Agenda

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

Page 6: Azure Mobile Service - Techdays 2014

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

Page 7: Azure Mobile Service - Techdays 2014

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.

Page 8: Azure Mobile Service - Techdays 2014

DATA

Page 9: Azure Mobile Service - Techdays 2014

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

Page 10: Azure Mobile Service - Techdays 2014

Supported module

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

Pusher)

Page 11: Azure Mobile Service - Techdays 2014

DEMOgetting started, working with data

Page 12: Azure Mobile Service - Techdays 2014

AUTHENTICATION

Page 13: Azure Mobile Service - Techdays 2014

Server flow

FACEBOOK

GOOGLE

TWITTER

MOBILE SERVICE

DEVICE

CREDENTIALS

MICROSOFT

IDENTITY AUTH

TOK

EN

Page 14: Azure Mobile Service - Techdays 2014

Client flow

FACEBOOK

GOOGLE

TWITTER

MOBILE SERVICE

DEVICE

CREDENTIALS

MICROSOFTAUTH TOKEN

AUTH TOKEN

Page 15: Azure Mobile Service - Techdays 2014

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

Page 16: Azure Mobile Service - Techdays 2014

DEMO configure authentication

Page 17: Azure Mobile Service - Techdays 2014

PUSH

Page 18: Azure Mobile Service - Techdays 2014

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

Page 19: Azure Mobile Service - Techdays 2014

DEMO push notification

Page 20: Azure Mobile Service - Techdays 2014

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

Page 21: Azure Mobile Service - Techdays 2014

Q & A

Page 22: Azure Mobile Service - Techdays 2014

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/)

Page 23: Azure Mobile Service - Techdays 2014

Thank you