Post on 01-Nov-2014
description
Sviluppo di backend per applicazioni mobile cross-platform con JavaScript e Mobile Services
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
Authentication overview
Eva Gjeci eva.gjeci@microsoft.com - Microsoft
Authentication
Eva Gjeci eva.gjeci@microsoft.com - Microsoft
TwitterFacebookGoogleMicrosoft
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
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