14
Azure Mobile Services for Cross Platform Mobile Apps Notes: If you experience audio issues during the webinar, you can dial in through telephone details provided to you in your registration confirmation email. Please feel free to post questions in the questions dialog and we will try to answer as many as we can at the end. Recording of this session will be shared in next 24-48 hours. You can also write to us at [email protected] for any clarifications or information.

Azure Mobile Services for Cross Platform Mobile Apps

Embed Size (px)

Citation preview

Page 1: Azure Mobile Services for Cross Platform Mobile Apps

Azure Mobile Services for Cross Platform Mobile Apps

Notes: If you experience audio issues during the webinar, you can dial in through telephone details provided

to you in your registration confirmation email. Please feel free to post questions in the questions dialog and we will try to answer as many as we can

at the end. Recording of this session will be shared in next 24-48 hours. You can also write to us at [email protected] for any clarifications or information.

Page 2: Azure Mobile Services for Cross Platform Mobile Apps

Session Speakers

Amit Dubay

Director – Cloud & MobilityWinWire TechnologiesMicrosoft Azure Certified Developer

Page 3: Azure Mobile Services for Cross Platform Mobile Apps

Agenda

Offline Data Sync

Server Scripts and Push Notifications

Authentication Modes

Introduction to Azure Mobile Services

Demo

12345

Questions6

Page 4: Azure Mobile Services for Cross Platform Mobile Apps

Introduction to Azure Mobile Services

Windows Azure Mobile Services Accelerates connected client application development by streamlining common backend tasks like structuring storage, authenticating users, and sending push notifications.

Page 5: Azure Mobile Services for Cross Platform Mobile Apps

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 6: Azure Mobile Services for Cross Platform Mobile Apps

Basic Features

Connected Apps

SDKs

Source control, table

scripts, custom API

&

SchedulerPush Notifications

Store Data in the Cloud

User Authentication

Facebook

Twitter Microsoft

Google Active Director

y

SQL Table Storag

e

Blob Storag

e

WNS & MPNS APNS GCM

Mongo DB

Windows Store iOSAndroid

Windows Phone 8iOSAndroidHTML 5/JSXamarin

REST API

Page 7: Azure Mobile Services for Cross Platform Mobile Apps

Supported Platforms

iOSWindows 8Windows Phone Android

HTML5 & Javascript

Page 8: Azure Mobile Services for Cross Platform Mobile Apps

Authentication

● Mobile Services integrates with the following identity providers to make it easy to authenticate users from your app: – Microsoft Account – Facebook login – Twitter login – Google login

● To enable authentication, you must first register your app with one or more of these identity providers and then configure your mobile service.

● You must also add authentication code to your app.

● When a user login is authenticated by Mobile Services, the value of the userId property on the user object passed to server scripts is set to a value that uniquely identifies a user. This value can then be used to authorize access to data.

Page 9: Azure Mobile Services for Cross Platform Mobile Apps

Server Script ObjectsName Descriptionapns Provide functionality to send notifications to Apple Push Notification Service (APNS)console Write information to Services logsgcm Provide functionality to send notifications to Google Cloud Messaging (GCM)mpns Provide functionality to send notifications to Microsoft Push Notification Service (MPNS)mssql Provides functionality for working directly with tables in the SQL Database using

Transact-SQLpush Provides access to objects that are used for sending push notifications to appsQuery Provides functionality for querying Windows Azure Mobile ServicesRequest Used to execute the requested operation and determine the response to the clientstatusCodes Enumerates the supported HTTP status codes can be returned by Windows Azure

Mobile ServicesTable Provides functionality for working with specific tables (insert, del, update, where, take,

select, etc.)tables Provides functionality for working with specific tables as a Table object instanceUser Represents the current requesting user.wns Provide functionality to send notifications to Windows Notification Service (WNS)

Page 10: Azure Mobile Services for Cross Platform Mobile Apps

Server Script Modules

Name Descriptionazure Provides functionality to access Azure services (Blobs, Tables, Service Bus)

request Sends HTTP requests to external web services, such as Twitter and Facebook.

sendgrid Used to send email by using the Sendgrid email service.util Provides useful methods like format, isDate, isArray, isErrorxml2js XML to JavaScript object converterjs2xml JavaScript to XML object converterxmlbuilder Can be used to create XML documentssax A very simple tool to parse through an XML string

Page 11: Azure Mobile Services for Cross Platform Mobile Apps

Push Notifications● Mobile Services can send push notifications to your

apps. ● The way that you configure and send push notifications

depends on your app.● You can send push notifications to the following

applications:– Windows Store app by using the Windows Push

Notification Service (WNS). To send push notifications to your app, you must configure your mobile service to work with WNS.

– iPhone and iPad apps by using the Apple Push Notification Service (APNS). To send push notifications to your app, you must configure your mobile service to work with APNS. Do this by generating a special push notification certificate at the iOS Provisioning Portal

– Android: You can send push notifications to Android apps by using the Google Cloud Messaging (GCM) service. To send push notifications to your app, you must configure your mobile service to work with GCM.

– Windows Phone 8 app by using the Microsoft Push Notification Service (MPNS). Mobile Services does not require you to register your Windows Phone 8 app to send push notifications.

Page 12: Azure Mobile Services for Cross Platform Mobile Apps

Offline Data Sync

Improve app responsiveness by caching server data locally on the device

Create robust apps that remain useful when there are network issues

Allow end-users to create and modify data even when there is no network access, supporting scenarios with little or no connectivity

Sync data across multiple devices and detect conflicts when the same record is modified by two devices

Limit network use on high-latency or metered networks

Offline data sync is a client and server SDK feature of Azure Mobile Apps that makes it easy for developers to create apps that are functional without a network connection

Page 13: Azure Mobile Services for Cross Platform Mobile Apps

Demo

Page 14: Azure Mobile Services for Cross Platform Mobile Apps

Q & ANext WebinarTopic : Angular JS 2 - New Paradigm of Application Development

When: Feb 3rd at 9am PT

http://www.winwire.com/blog-winsights/

www.twitter.com/winwire

[email protected]

www.winwire.com