SlideShare a Scribd company logo
Connected & Disconnected Apps with Azure Mobile Apps
Connected & Disconnected Apps with Azure Mobile Apps
Connected & Disconnected Apps with Azure Mobile Apps
Connected & Disconnected Apps with Azure Mobile Apps
opensignal.com/coverage-maps
Connected & Disconnected Apps with Azure Mobile Apps
Connected & Disconnected Apps with Azure Mobile Apps
Connected & Disconnected Apps with Azure Mobile Apps
Infrastructure
designed for Scale
Connected & Disconnected Apps with Azure Mobile Apps
RESTAPI
Offline
sync
Facebook Twitter Microsoft Google Azure Active
Directory
Azure Mobile Apps
WindowsAndroid
Chrome
iOS
OSX
In-AppKindle
Backend code
SQL MongoTables O365 API Apps
Offline Sync
Connected & Disconnected Apps with Azure Mobile Apps
Create a Mobile Service
MobileService = new MobileServiceClient(
"https://myapp.azurewebsites.net");
Create tables
IMobileServiceSyncTable<TodoItem> syncTable;
public async Task Init()
{
const string path = "syncstore.db";
var db = new MobileServiceSQLiteStore(path);
db.DefineTable<TodoItem>();
}
await MobileService.SyncContext.InitializeAsync(db);
syncTable = MobileService.GetSyncTable<TodoItem>();
Push and pull with sync table
private async Task SyncAsync()
{
await MobileService.SyncContext.PushAsync();
var query = syncTable.CreateQuery();
await syncTable.PullAsync("todoItems", query);
}
private async Task InsertTodoItem(TodoItem todoItem)
{
await syncTable.InsertAsync(todoItem);
await MobileService.SyncContext.PushAsync();
}
Query local table
public async Task<IEnumerable<TodoItem>> GetOpenItemsAsync()
{
return await todoTable
.Where(item => item.Complete == false)
.ToEnumerableAsync();
}
Connected & Disconnected Apps with Azure Mobile Apps
Connected & Disconnected Apps with Azure Mobile Apps
Notification Hub
• Maps between tags and handles
1. Get PNS handle
4. Send to device
2. Store PNS handle 3b. Request notification
Use device handles
3a. Request notification
Use logical users/tags
5. Manage device handles
Connected & Disconnected Apps with Azure Mobile Apps
Shopping Demo App
Azure Services:
• Cognitive Services (Emotion API)
• Storage
• On/offline sync
• Push notifications
• Authentication
What’s Available:
• Complete sample app with documentation
• Individual “quick starts”
github.com/Microsoft/XamarinAzure_ShoppingDemoApp
Shared C# codebase • 100% native API access • High performance
iOS C# UI Windows C# UIAndroid C# UI
Shared C# Mobile C# Server
Linux/Mono
CoreCLRAzure
Shared C# Client/Server
Connected & Disconnected Apps with Azure Mobile Apps
Get started today
xamarin.com/download
xamarin.com/azure
xamarin.com/dev-ops

More Related Content

PPTX
Serverless with azure functions the rebel service
PPTX
Why magic
PDF
DOT NET LAB PROGRAM PERIYAR UNIVERSITY
PPTX
SQL Server Monitor and Maintenance​ with Azure OMS
PPTX
Aplicaciones Xamarin conectadas y desconectadas con Azure
PDF
The Fine Art of Time Travelling: implementing Event Sourcing
PPTX
CodeMash 2013 Microsoft Data Stack
PDF
Designing Secure APIs in the Cloud
Serverless with azure functions the rebel service
Why magic
DOT NET LAB PROGRAM PERIYAR UNIVERSITY
SQL Server Monitor and Maintenance​ with Azure OMS
Aplicaciones Xamarin conectadas y desconectadas con Azure
The Fine Art of Time Travelling: implementing Event Sourcing
CodeMash 2013 Microsoft Data Stack
Designing Secure APIs in the Cloud

What's hot (6)

PPTX
Using prime[31] to connect your unity game to azure mobile services
PPTX
Unity and Azure Mobile Services using Prime31 plugin
PPTX
What's new in the July 2017 Update for Dynamics 365 - Developer features
PDF
Aws serverless multi-tier_architectures
PPTX
Azure functions
PPT
Silverlight Databinding
Using prime[31] to connect your unity game to azure mobile services
Unity and Azure Mobile Services using Prime31 plugin
What's new in the July 2017 Update for Dynamics 365 - Developer features
Aws serverless multi-tier_architectures
Azure functions
Silverlight Databinding
Ad

Viewers also liked (20)

PPTX
Starting Mobile Development
PDF
Trivadis TechEvent 2016 State of the Private Cloud - Oracle Edition by Bernha...
PDF
Performance myths in android
PDF
Network Performance: An Operator’s Competitive Differentiator
PDF
App coverage in cities
PPTX
A Data-Driven Approach to Testing the Right Devices, Platforms, and User Cond...
PDF
Html5, Native and Platform based Mobile Applications
PDF
Continuous Cross Platform Mobile App Development using Jenkins Build Server
PDF
The Big Easy: Native Mobile App Development with Appcelerator Titanium and Ja...
PDF
Native vs. Mobile Web vs. Hybrid Apps for Mobile Development
PDF
HTML5 or Android for Mobile Development?
PPTX
Delivering extreme app coverage
PDF
Indoor launch
PPT
Kpi kqi
DOCX
Lte drive test parameters
PDF
Iot launch
PDF
Lte drive test parameter introduction
PDF
Ericsson Radio Dot System: Introduction
PDF
3 Things Every Sales Team Needs to Be Thinking About in 2017
PDF
Build Features, Not Apps
Starting Mobile Development
Trivadis TechEvent 2016 State of the Private Cloud - Oracle Edition by Bernha...
Performance myths in android
Network Performance: An Operator’s Competitive Differentiator
App coverage in cities
A Data-Driven Approach to Testing the Right Devices, Platforms, and User Cond...
Html5, Native and Platform based Mobile Applications
Continuous Cross Platform Mobile App Development using Jenkins Build Server
The Big Easy: Native Mobile App Development with Appcelerator Titanium and Ja...
Native vs. Mobile Web vs. Hybrid Apps for Mobile Development
HTML5 or Android for Mobile Development?
Delivering extreme app coverage
Indoor launch
Kpi kqi
Lte drive test parameters
Iot launch
Lte drive test parameter introduction
Ericsson Radio Dot System: Introduction
3 Things Every Sales Team Needs to Be Thinking About in 2017
Build Features, Not Apps
Ad

Similar to Connected & Disconnected Apps with Azure Mobile Apps (20)

PPTX
Connected & Disconnected Apps with Azure Mobile Apps
PPTX
Xamarin Dev Days 2017 - Connected & disconnected apps with Azure Mobile Apps
PDF
Connected Mobile Apps with Microsoft Azure
PPTX
Xamarin Dev Days - Connected & Disconnected Apps with Azure Mobile Apps
PPTX
Xamarin devdays 2017 - PT - connected apps
PPTX
Connected & Disconnected Apps with Xamarin
PPTX
Connected & Disconnected Apps With Azure Mobile Apps
PPTX
Azure Mobile Services : Service Enablement at its best
PPTX
Azure Mobile Services
PPTX
Get started azure- Azure Mobile Services
PPTX
Windows Azure Mobile Services - The Perfect Partner
PPTX
Azure Mobile Services Workshop
PDF
Azure App Service Helpers
PPTX
2015.04.23 Azure Mobile Services
PPTX
Forms + azure
PPTX
Azure Mobile Services per Windows Phone e smartphones
PPTX
Codemotion Berlin-Mobile Services
PPTX
Azure Mobile Services
PDF
Windows azure mobile services
PPTX
Building a chat app with windows azure mobile
Connected & Disconnected Apps with Azure Mobile Apps
Xamarin Dev Days 2017 - Connected & disconnected apps with Azure Mobile Apps
Connected Mobile Apps with Microsoft Azure
Xamarin Dev Days - Connected & Disconnected Apps with Azure Mobile Apps
Xamarin devdays 2017 - PT - connected apps
Connected & Disconnected Apps with Xamarin
Connected & Disconnected Apps With Azure Mobile Apps
Azure Mobile Services : Service Enablement at its best
Azure Mobile Services
Get started azure- Azure Mobile Services
Windows Azure Mobile Services - The Perfect Partner
Azure Mobile Services Workshop
Azure App Service Helpers
2015.04.23 Azure Mobile Services
Forms + azure
Azure Mobile Services per Windows Phone e smartphones
Codemotion Berlin-Mobile Services
Azure Mobile Services
Windows azure mobile services
Building a chat app with windows azure mobile

More from Pranav Ainavolu (20)

PPTX
Containerization with Azure
PPTX
ASP.NET Core Overview
PPTX
Microsoft Azure - Introduction
PPTX
Cross platform mobile app development with Xamarin
PPTX
Understanding Basics of Machine Learning
PPTX
Xamarin Dev Days - Xamarin.Forms
PPTX
Native iOS, Android apps using Xamarin.Forms dotnetConf2016 Hyderabad
PPTX
Xamarin Forms
PPTX
Automated Testing & Auto Scaling your Apps with Microsoft & Open Source Techn...
PPTX
Building A Conversational Bot Using Bot Framework and Microsoft
PPTX
The Internet of Things with Azure Service Bus
PPTX
Dev/Test Scenarios in the DevOps World
PPTX
Using Visual Studio to build XAML Universal Apps
PPTX
Designing cross-platform User Interface with native performance using Xamarin...
PPTX
Building Windows Store apps with HTML & Javascript
PPTX
Building Android, iOS and Windows 8 Apps with Windows Azure Mobile Services
PPTX
Whats New in the Visual Studio 2013 IDE
PPTX
Building Apps for Office 2013
PPTX
Whats New in Excel 2013
PPTX
Windows8 and Windows Azure Mobile Services
Containerization with Azure
ASP.NET Core Overview
Microsoft Azure - Introduction
Cross platform mobile app development with Xamarin
Understanding Basics of Machine Learning
Xamarin Dev Days - Xamarin.Forms
Native iOS, Android apps using Xamarin.Forms dotnetConf2016 Hyderabad
Xamarin Forms
Automated Testing & Auto Scaling your Apps with Microsoft & Open Source Techn...
Building A Conversational Bot Using Bot Framework and Microsoft
The Internet of Things with Azure Service Bus
Dev/Test Scenarios in the DevOps World
Using Visual Studio to build XAML Universal Apps
Designing cross-platform User Interface with native performance using Xamarin...
Building Windows Store apps with HTML & Javascript
Building Android, iOS and Windows 8 Apps with Windows Azure Mobile Services
Whats New in the Visual Studio 2013 IDE
Building Apps for Office 2013
Whats New in Excel 2013
Windows8 and Windows Azure Mobile Services

Recently uploaded (20)

PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPT
Teaching material agriculture food technology
PPTX
A Presentation on Artificial Intelligence
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Encapsulation theory and applications.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Reach Out and Touch Someone: Haptics and Empathic Computing
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Teaching material agriculture food technology
A Presentation on Artificial Intelligence
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Understanding_Digital_Forensics_Presentation.pptx
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Spectral efficient network and resource selection model in 5G networks
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
NewMind AI Monthly Chronicles - July 2025
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Dropbox Q2 2025 Financial Results & Investor Presentation
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
The Rise and Fall of 3GPP – Time for a Sabbatical?
Encapsulation theory and applications.pdf

Connected & Disconnected Apps with Azure Mobile Apps

  • 11. RESTAPI Offline sync Facebook Twitter Microsoft Google Azure Active Directory Azure Mobile Apps WindowsAndroid Chrome iOS OSX In-AppKindle Backend code SQL MongoTables O365 API Apps Offline Sync
  • 13. Create a Mobile Service MobileService = new MobileServiceClient( "https://myapp.azurewebsites.net");
  • 14. Create tables IMobileServiceSyncTable<TodoItem> syncTable; public async Task Init() { const string path = "syncstore.db"; var db = new MobileServiceSQLiteStore(path); db.DefineTable<TodoItem>(); } await MobileService.SyncContext.InitializeAsync(db); syncTable = MobileService.GetSyncTable<TodoItem>();
  • 15. Push and pull with sync table private async Task SyncAsync() { await MobileService.SyncContext.PushAsync(); var query = syncTable.CreateQuery(); await syncTable.PullAsync("todoItems", query); } private async Task InsertTodoItem(TodoItem todoItem) { await syncTable.InsertAsync(todoItem); await MobileService.SyncContext.PushAsync(); }
  • 16. Query local table public async Task<IEnumerable<TodoItem>> GetOpenItemsAsync() { return await todoTable .Where(item => item.Complete == false) .ToEnumerableAsync(); }
  • 19. Notification Hub • Maps between tags and handles 1. Get PNS handle 4. Send to device 2. Store PNS handle 3b. Request notification Use device handles 3a. Request notification Use logical users/tags 5. Manage device handles
  • 21. Shopping Demo App Azure Services: • Cognitive Services (Emotion API) • Storage • On/offline sync • Push notifications • Authentication What’s Available: • Complete sample app with documentation • Individual “quick starts” github.com/Microsoft/XamarinAzure_ShoppingDemoApp
  • 22. Shared C# codebase • 100% native API access • High performance iOS C# UI Windows C# UIAndroid C# UI Shared C# Mobile C# Server Linux/Mono CoreCLRAzure Shared C# Client/Server

Editor's Notes

  • #10: And you get all the goodness shown in the previous slides across the WW
  • #11: Extremely powerful You can do almost anything your backend would ever need to do with Azure. Data storage, authentication/authorization, push notifications, custom APIs, blob storage, etc. Flexible Need something lightweight? Azure is there. Need something robust and powerful? Azure is there. C# clients I’m a frontend developer, I care a lot about how easy this makes MY job (selfish) Many C# clients are written by Java developers, etc. Easy to use C# client Abstracts away much of pain of using a RESTful API C# Features Async / Await / TPL Uses C# idioms Properties, Fluent API Seems obvious, but not always true (first class citizen)
  • #18: What if a GetAll should only return favorites for that user.
  • #20: Backend deletes expired handles when PNS rejects them Maintain mapping between logical users/groups and device handles
  • #23: With Xamarin it just isn’t your front end in C# it is your full backend server as well. With Azure or even on Linux running Mono or the CoreCLR your app is fully C# end to end!
  • #25: Get started today with free 30 day trial of Xamarin at xamarin.com