Sviluppo di backend per applicazioni mobile cross-platform con JavaScript e Mobile Servies

Post on 01-Nov-2014

936 views 1 download

Tags:

description

Tra le esigenze più comuni nello sviluppo di un’applicazione mobile ci sono l’invio di notifiche push, la memorizzazione, la gestione dei dati e l’autenticazione con diversi provider (Facebook, Twitter etc). Nel corso della sessione vedremo come il servizio Mobile di Azure sia il compagno ideale per le vostre applicazioni Windows Phone e Windows 8, e anche web, iOS o Android.

Transcript of Sviluppo di backend per applicazioni mobile cross-platform con JavaScript e Mobile Servies

Sviluppo di backend per applicazioni mobile cross-platform con JavaScript e Mobile Services

Eva Gjeci

eva.gjeci@microsoft.com - Microsoft

How I Am

Eva Gjeci eva.gjeci@microsoft.com - Microsoft

Agenda

Eva Gjeci eva.gjeci@microsoft.com - Microsoft

What is Windows Azure

What is Mobile Services

How to use Mobile Services

How to get started

What is Windows Azure?

Eva Gjeci eva.gjeci@microsoft.com - Microsoft

flexible open solid

Windows Azure can be anything you want it to be.

Why Mobile Services?

Eva Gjeci Eva.gjeci@microsoft.com - Microsoft

Windows Azure Mobile Services makes it fast and easy to build

dynamic and engaging mobile apps that scale. Store data in the

cloud, authenticate users, and send push notifications with only a few lines of code.

1. Apps are everywhere2. Time to market3. Minimize custom code

Mobile Service Overview

Eva Gjeci Eva.gjeci@microsoft.com - Microsoft

Supported Platforms

Eva Gjeci eva.gjeci@microsoft.com - Microsoft

iOSWindows 8Windows Phone Android

HTML5 & Javascript Xamarin

Demo

Eva Gjeci eva.gjeci@microsoft.com - Microsoft

Authentication overview

Eva Gjeci eva.gjeci@microsoft.com - Microsoft

Authentication

Eva Gjeci eva.gjeci@microsoft.com - Microsoft

TwitterFacebookGoogleMicrosoft

Authentication Demo

Eva Gjeci eva.gjeci@microsoft.com - Microsoft

Push notification Lifecycle overview

Eva Gjeci eva.gjeci@microsoft.com - Microsoft

1. Request Channel URI

2. Register with your Cloud Service

3. Authenticate & Push Notification

Push notification

Eva Gjeci eva.gjeci@microsoft.com - Microsoft

Push notification

Eva Gjeci eva.gjeci@microsoft.com - Microsoft

Push notification Demo

Eva Gjeci eva.gjeci@microsoft.com - Microsoft

Server side code

Eva Gjeci eva.gjeci@microsoft.com - Microsoft

Use server scripts to add custom logic to your mobile application as well as connect to other Windows Azure or third party services

Table Scheduled Custom API

Tied to a CRUD operation on a SQL database

Ideal for actions triggered by events

JSON payloads only

Scripts can call other scripts and require user-submitted modules

Script runs on demand or on a user-defined schedule

Ideal for database cleanup, image resizing, periodic communications, etc.

Scripts can call other scripts and require user-submitted modules

Scripts are not associated with a table

Ideal for most scenarios

Supports additional payloads like XML

Scripts can call other scripts and require user-submitted modules

Access third party servicesEva Gjeci eva.gjeci@microsoft.com - Microsoft

require(‘service_node_module’) Service with exposed REST API

Notification Hub overview

Eva Gjeci eva.gjeci@microsoft.com - Microsoft

Push in Mobile Services vs Notification Hub

Eva Gjeci eva.gjeci@microsoft.com - Microsoft

Mobile Services Notification

Hubs

MPNS, WNS, APNS, and GCM support Yes Yes

Turnkey event-triggered push Yes No

Device registration management No Yes

Interest tags for routing messages to a

subset of users

No Yes

Templates for formatting messages to

user preferences including language

No Yes

Broadcast to >1 million devices at once

within minutes

No Yes

Getting started

Eva Gjeci Eva.gjeci@microsoft.com - Microsoft

Q&A

Eva Gjeci Eva.gjeci@microsoft.com - Microsoft

Q&A