28

Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

Embed Size (px)

Citation preview

Page 1: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services
Page 2: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

Nick LandrySenior Technical Evangelist, MicrosoftAgeofMobility.com@ActiveNick – github.com/activenick

Page 3: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

Session Agenda

Page 4: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services
Page 5: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

Mobile Development is Hard

*not including those purely doing it for fun or learning purposes

Developer Economics | State of the Developer Nation Q1 2015 | © VisionMobile

http://vmob.me/DE1Q15

Page 6: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

A few mobile apps you may know…

Page 7: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

Reducing Mobile App Development Costs

Clutch Survey | Cost to Build a Mobile App, Jan 2015 | © Clutch – http://bit.ly/1KTu2vj

Page 8: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

C# + XIB C# + XML C# + XAML

Native UI Native UI Native UI

Optional Remote Services(ASP.NET Web API

or any server technology)

Page 9: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

Running Your Stuff in the Cloud

Microsoft

Azure

Page 10: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

Cloud Computing Models

Page 11: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

App Service - one integrated offering

API Apps

Easily build and consume APIs in the cloud

Web Apps

Web apps that scale with your business

Mobile Apps

Build Mobile apps for any device

LOGIC Apps

Automate business process across SaaS and on-premises

Page 12: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

App Service Application Composition

Web Apps Mobile AppsLOGIC Apps

API Apps

Page 13: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

Node.js Express

.NET Web API

SQL Table Storage

Blob Storage

WNS & MPNS

APNS GCM

Mongo DB

Notification Hubs

Source Control

Facebook Twitter Microsoft Google Azure Active Directory

Windows Store

iOS

Android

Xamarin

Phonegap

Sencha

Windows Phone

iOS

Android

HTML 5/JS

SDKs

REST A

PI

Hybrid Connections

Azure Mobile Services is now App Services

Page 14: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

Action HTTP Verb URL Suffix

Create POST /TodoItem

Read GET /TodoItem?$filter=id%3D42

Update PATCH /TodoItem/id

Delete DELETE /TodoItem/id

Data Operations and their REST Equivalents

Base REST API Endpoint URL

https://mymobileservice.azure-mobile.net/tables/*

Odata protocol

LINQ support for

the C# SDK

A Basic table

Page 15: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services
Page 16: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

Push notification lifecycle

Registration at app launch1.

2.

Sending Notification1.

2.

Maintenance1.

Platform

Notification

Service

App back-end

Page 17: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

Challenges of push notifications

Page 18: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

Using Notification Hubs

One-time set up1.

Register1.

2.

Send Notification1.

2.

APNs WNS

Notification Hub

App back-end

iOS app Windows app

MPNS

GCM

ADM

Page 19: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

Advantages of using Notification Hubs

Page 20: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

Summary

Page 22: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

Technical Resources for Cloud Devs

http://aka.ms/trymsazure

https://manage.windowsazure.com

https://portal.azure.com/

http://channel9.msdn.com/Shows/Cloud+Cover

http://friday.azure.com

http://aka.ms/azurechatrblog

http://aka.ms/vsc2013

Page 23: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

Free Software & Cloud Services

Are you…

• A tech entrepreneur?

• A software startup owner or partner?

• A developer moonlighter?

• An independent…• Software dev consultant?

• Mobile app developer?

• Game developer?

• Website designer/builder?

With BizSpark you get…

• MSDN Ultimate Sub.

• $750 per month in Azure credits (across 5 users)

• Visual Studio Enterprise

• Office 365 Subscription

• 11TB of Microsoft software

• All free!

Page 24: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

BizSpark

BizSpark

3 years of

Microsoft software:

MSDN Ultimate

Subscriptions

$150 / month in

Azure cloud credits.

Office 365 Developer

Up to 5 users per

BizSpark account

per startup

Technical & product

support. Offers from

network partners

Marketing visibility.

Events. Ecosystem

Connections.

http://aka.ms/bizsparkapply

Page 25: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

Watch all sessions on demand at

http://channel9.msdn.com/events/build/2015

Page 26: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

Online Microsoft training delivered by experts to help technologists continually learn

Hundreds of courses for developers, IT Pros, students, entrepreneurs and enthusiasts

11 different languages

More than 3M students registered

Build your own Learning Plan

All free!

http://www.microsoftvirtualacademy.com

Page 27: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

Universal Windows App Developmentwith Cortana and the Speech SDK

Available for on-demand viewing now: http://aka.ms/CortanaMVA

Page 28: Building Cloud-Enabled Cross-PlatformMobile Apps in C# with Azure App Services

Thank You!

Slides are posted on SlideShare. Demos are on GitHub.

SlideShare: www.slideshare.net/ActiveNick

Blog: www.AgeofMobility.com

Twitter: @ActiveNick

Mobile Apps: www.bigbaldapps.com

LinkedIn: www.linkedin.com/in/activenick

GitHub: github.com/ActiveNick

Email: [email protected]