Windows Azure Mobile Services

50 %
50 %
Information about Windows Azure Mobile Services

Published on February 28, 2014

Author: goldshtn



Presentation from ConFoo 2014 on Windows Azure Mobile Services. Introducing the platform, building out an application that uses data storage, server-side scripts, custom API endpoints, push notifications, and client authentication. Source code is available on GitHub at

Sasha Goldshtein CTO, SELA Group @goldshtn Windows Azure Mobile Services © Copyright SELA software & Education Labs Ltd. | 14-18 Baruch Hirsch St Bnei Brak, 51202 Israel |

Who Are We? App Developers What Do We Hate? Backends

We need one backend for all our mobile apps, scaled by the cloud Oh, and it should cost about $0-5 / month for a small, simple app

Backend as a Service Windows 8 & Windows Phone iOS & Android HTML & JavaScript Data & LINQ queries Server scripts, scheduler Authentication & WAADNEW Custom APINEW Source control and NPMNEW Push, notification hubsNEW

Windows Azure Mobile Services Portal Demo

Initializing The Mobile Service Client The application key is for development iOS Windows 8 / Windows PhoneIn Android use user purposes only. / production, authentication to limit access to data ms = new MobileServiceClient( [MSClient clientWithApplicationURLString: "" "", "..." /*API key*/); applicationKey:"..."];

Accessing Data // Windows 8 and Windows Phone var apartments = await ms.GetTable<Apartment>() .Where(a => a.Bedrooms > 2).ToListAsync(); // Android ms.getTable(Apartment.class).where(). .field("bedrooms").gt(2).execute(...); // iOS NSPredicate *pred = [NSPredicate predicateWithFormat:@"bedrooms > 2"]; [[client getTable:@"apartment"] readWhere:pred completion:^...];

Server Scripts CRUD operations can pass through a custom script Use for validation, data enrichment, etc. Scripts are written in JavaScript and run on Node.js Can access several Node modules: request, push, … function insert(item, user, request) { if (item.address.length === 0) { request.respond(400); } else { request.execute(); } }

Custom API Add custom HTTP endpoints to your mobile service Very useful for external access = function(request, response) { sharedHub.send_ad(request.body.message, function(error) { if (error) { response.send(500, 'Error sending ad: ' + error); } else { response.send(200); } }); };

Enriching Data with Server Scripts Demo

Push Prepare app for push from script On trigger, send push notifications Depends on platform Unfortunately, push API differs for each platform Channel = await PushNotificationChannelManager. push.wns.sendToast02(channel.uri, { text01: "New apartment added", CreatePushNotificationChannelForApplicationAsync(); channelsTable.Insert(new Channel(Channel.Uri)); text02: apartment.address });

Notification Hubs Register push messages based on the Blast out templates for push notifications with arbitrary and the tags template custom tags template = var payload{=data: { message: '$(message)' } }; { message : message }; hub.gcm.createTemplateRegistration(request.body.uri, }); hub.send(tag, payload, function(error, outcome) { ...tags, template, registrationComplete);

Server-Side Push Support Demo

Authentication // iOS if (!client.currentUser) { [self presentViewController:[client loginViewControllerWithProvider:@"twitter" completion:(MSUser *user, NSError *err) ... ] animated:YES]; } // Android if (client.getCurrentUser() != null) { client.login( MobileServiceAuthenticationProvider.Twitter, new UserAuthenticationCallback() ...); }

Authentication Demo

Summary Windows Azure Mobile Services provide a powerful and customizable backend for your mobile apps Code available at

Questions Sasha Goldshtein CTO, SELA Group @goldshtn

Add a comment

Related presentations

Presentación que realice en el Evento Nacional de Gobierno Abierto, realizado los ...

In this presentation we will describe our experience developing with a highly dyna...

Presentation to the LITA Forum 7th November 2014 Albuquerque, NM

Un recorrido por los cambios que nos generará el wearabletech en el futuro

Um paralelo entre as novidades & mercado em Wearable Computing e Tecnologias Assis...

Microsoft finally joins the smartwatch and fitness tracker game by introducing the...

Related pages

Mobile Services Documentation | Azure

Learn how to add cloud data storage, authentication with Facebook and Twitter, and push notifications to your mobile app by using Azure Mobile Services.
Read more

Mobile App Service | Microsoft Azure

Build engaging cross-platform and native apps for iOS, Android, Windows or Mac with Azure's Mobile App Service.
Read more

Microsoft Azure Mobile Services | Channel 9

The Windows Azure Mobile Services team are excited to announce full support for iOS developers with a number of improvements to the native, iOS ...
Read more

GitHub - Azure/azure-mobile-services: Client SDKs and ...

azure-mobile-services - Client SDKs and Samples for Azure Mobile Services
Read more

Msdn forums - Azure Mobile Services

Is it possible for Azure Mobile Service ... windows mobile services ... I see Azure Mobile Services offline/sqlite a slam dunk ...
Read more

ScottGu's Blog - Announcing Windows Azure Mobile Services

I’m excited to announce a new capability we are adding to Windows Azure today: Windows Azure Mobile Services Windows Azure Mobile Services makes it ...
Read more

Download Windows Azure Mobile Services Poster from ...

Poster describes features and capabilities of Mobile Services.
Read more

Azure Mobile Services Team Blog - Site Home - MSDN Blogs

The blog of the Azure Mobile Services team. We announce new releases and tell you useful technical information.
Read more

Azure Mobile Services REST API Reference

Azure Mobile Services REST API Reference ... Microsoft Azure Mobile Services is a Azure service offering designed to make it easy to create ...
Read more

Using Windows Azure Mobile Services

Introducing Windows Azure Mobile Services Windows Azure Mobile Services is a Windows Azure service offering designed to make it easy to create highly ...
Read more