Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Connected Mobile Apps with Microsoft Azure


Published on

Whether you’re a new mobile developer or an experienced enterprise team lead, Microsoft’s Azure App Service and Xamarin give you everything you need to build engaging Android, iOS, and Windows apps.

Watch webinar recording at
Explore Xamarin University at

Published in: Software

Connected Mobile Apps with Microsoft Azure

  1. 1. Connected Mobile Apps with Microsoft Azure
  2. 2.
  3. 3. James Montemagno Principal Program Manager – Mobile Developer Tools, Microsoft @JamesMontemagno Weekly development podcast Weekly development show
  4. 4.
  5. 5. Infrastructure designed for Scale
  6. 6. 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
  7. 7. Create a Mobile Service MobileService = new MobileServiceClient( "");
  8. 8. 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>();
  9. 9. 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(); }
  10. 10. Query local table public async Task<IEnumerable<TodoItem>> GetOpenItemsAsync() { return await todoTable .Where(item => item.Complete == false) .ToEnumerableAsync(); }
  11. 11. 2. Store PNS handle
  12. 12. 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
  13. 13. 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”
  14. 14. 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
  15. 15. Get started today
  16. 16. Get sample apps, docs, and start your free trial
  17. 17. Free self-guided courses
  18. 18. Thank you. James Montemagno Principal Program Manager – Mobile Developer Tools, Microsoft @JamesMontemagno