Building Cloud-Enabled Cross-Platform
Mobile Apps in C# with Azure App Services
Nick Landry
Senior Technical Evangelist, Microsoft
AgeofMobility.com
@ActiveNick – github.com/activenick








Session Agenda
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
A few mobile apps you may know…
Reducing Mobile App Development Costs
Clutch Survey | Cost to Build a Mobile App, Jan 2015 | © Clutch – http://bit.ly/1KTu2vj
C# + XIB C# + XML C# + XAML
Native UI Native UI Native UI
Optional Remote Services
(ASP.NET Web API
or any server technology)
Running Your Stuff in the Cloud
Microsoft
Azure
Cloud Computing Models
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
App Service Application Composition
Web Apps Mobile AppsLOGIC Apps
API Apps
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
RESTAPI
Hybrid
Connections
Azure Mobile Services is now 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
Push notification lifecycle
Registration at app launch
1.
2.
Sending Notification
1.
2.
Maintenance
1.
Platform
Notification
Service
App back-end
Challenges of push notifications







Using Notification Hubs
One-time set up
1.
Register
1.
2.
Send Notification
1.
2.
APNsWNS
Notification Hub
App back-end
iOS app Windows app
MPNS
GCM
ADM







Advantages of using Notification Hubs





Summary
free cloud development courses
Try Microsoft Azure for free
AzureAppService for free
Cloud Resources
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
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!
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
Watch all sessions on demand at
http://channel9.msdn.com/events/build/2015
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
 Universal Windows App Development
with Cortana and the Speech SDK






 Available for on-demand viewing now:
 http://aka.ms/CortanaMVA
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: nick.landry@microsoft.com

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

  • 2.
    Building Cloud-Enabled Cross-Platform MobileApps in C# with Azure App Services Nick Landry Senior Technical Evangelist, Microsoft AgeofMobility.com @ActiveNick – github.com/activenick
  • 3.
  • 5.
    Mobile Development isHard *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
  • 6.
    A few mobileapps you may know…
  • 7.
    Reducing Mobile AppDevelopment Costs Clutch Survey | Cost to Build a Mobile App, Jan 2015 | © Clutch – http://bit.ly/1KTu2vj
  • 8.
    C# + XIBC# + XML C# + XAML Native UI Native UI Native UI Optional Remote Services (ASP.NET Web API or any server technology)
  • 9.
    Running Your Stuffin the Cloud Microsoft Azure
  • 10.
  • 11.
    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
  • 12.
    App Service ApplicationComposition Web Apps Mobile AppsLOGIC Apps API Apps
  • 13.
    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 RESTAPI Hybrid Connections Azure Mobile Services is now App Services
  • 14.
    Action HTTP VerbURL 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
  • 16.
    Push notification lifecycle Registrationat app launch 1. 2. Sending Notification 1. 2. Maintenance 1. Platform Notification Service App back-end
  • 17.
    Challenges of pushnotifications       
  • 18.
    Using Notification Hubs One-timeset up 1. Register 1. 2. Send Notification 1. 2. APNsWNS Notification Hub App back-end iOS app Windows app MPNS GCM ADM
  • 19.
  • 20.
  • 21.
    free cloud developmentcourses Try Microsoft Azure for free AzureAppService for free Cloud Resources
  • 22.
    Technical Resources forCloud 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
  • 23.
    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!
  • 24.
    BizSpark BizSpark 3 years of Microsoftsoftware: 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
  • 25.
    Watch all sessionson demand at http://channel9.msdn.com/events/build/2015
  • 26.
    Online Microsoft trainingdelivered 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
  • 27.
     Universal WindowsApp Development with Cortana and the Speech SDK        Available for on-demand viewing now:  http://aka.ms/CortanaMVA
  • 28.
    Thank You! Slides areposted 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: nick.landry@microsoft.com

Editor's Notes

  • #4 © 2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.
  • #6 Knows C# ??? Writes mobile apps today? Enterprise Apps ??? Consumer apps?? iOS?? Android ?? Windows Phone?? Xamarin??
  • #7 18% of developers make less than $100 per month 17% make less than $1000 per month Bringing us to a total of 52%. 43% of enterprise app developers make more than $10K per month versus 19% of consumer app developers reaching the same revenue level.
  • #9 User login Sync across devices Initial setup/Basic controls Data storage Third-party API integration Access to enterprise data Data encryption Scalability/Large number of users Infrastructure for performance management and analytics
  • #10 C# + XAML C# + XML C# + XIB Highlight that thru PCL (Portable Class Libraries) you can also re-used binary-compiled .DLLs between the three platforms rather than just C# code.
  • #12 (Adjust timing to Audience) Slide Objective: Explain the commonly accepted cloud computing models (IaaS, PaaS, and SaaS) in terms of an IT Pro’s responsibilities. Key Talking Points: When considering these cloud computing models, skilled IT Pros are needed to manage the components of each model that are unique to an organization: (CLICK) Infrastructure as a Service: While the cloud vendor manages the physical hardware fabric for raw compute, networking and storage capacity, (CLICK) IT Pros provision IaaS for their organizational needs and (CLICK) continue to manage each provisioned virtual machine in a manner that is very similar to on-premises workloads. (CLICK) Platform as a Service: In PaaS, the cloud platform vendor provisions and manages a consistent runtime environment upon which applications can be developed. (CLICK) IT Pros are needed in deploying and monitoring these applications, as well as managing access and protection of data. (CLICK) Software as a Service: In SaaS, an organization is consuming an entire packaged application that is being delivered via the cloud. (CLICK) IT Pros are needed to manage access to these applications and the underlying data. By choosing the best cloud computing model for each application need, depending on whether your organization needs to host, develop or consume an application, IT Pros can gain significant time-savings when managing applications that can then be applied to time investments in new strategic projects for an organization. (CLICK) During this event, we will primarily be focusing on the IaaS Computing Model delivered via Windows Azure Infrastructure Services so that you can learn how to leverage the advantages of Windows Azure for hosting existing applications for your organization.
  • #26 This is just the tip of the iceberg of things possible with Microsoft. Start here and go up! bizspark is your pipeline to Microsoft software development tools. need proof? over 75,000 startups from more than 100 countries have already joined Microsoft BizSpark is a global program that provides free software, support and visibility to help startups succeed
  • #27 Visual Studio Code Makers: Windows 10 IoT Core Insider Preview New partnerships announced: Arduino, Hackster.io And much more…