Connected & Disconnected Apps With Azure Mobile Apps

Download Connected & Disconnected Apps With Azure Mobile Apps

Post on 16-Feb-2017

117 views

Category:

Mobile

2 download

Embed Size (px)

TRANSCRIPT

<p>PowerPoint Presentation</p> <p>#XamarinDevDays</p> <p>Alejandro Ruiz@alejandroruizvaCTO @ Los XamarinosConnected &amp; Disconnected Apps with Azure Mobile Apps</p> <p>We Apps!</p> <p>189Mdownloads a day</p> <p>200mins on phone</p> <p>127mins in apps</p> <p>The average app user has 36 apps installed on his or her phone.</p> <p>Only 1/4 are used daily:</p> <p>1/4 of apps are never used!</p> <p>Slow or laggy experienceCrashesNot intuitive &amp; bad user experienceFeatures not as advertisedData not available when you need it</p> <p>Bad App Experiences</p> <p>Always connected?</p> <p>http://opensignal.com/coverage-maps</p> <p>What about a backend?</p> <p>Plenty of Options</p> <p>Amazon Web ServicesAzure Mobile AppsIBM MobileFirst Oracle Mobile CloudSQLCIipherCouchbaseRealmSQLite-net</p> <p>Extremely powerfulFlexibleEasy TablesApp ServiceC# SDKs available everywhere:C#- iOS, Android, &amp; Windows with XamarinC# clients, written by C# developers (open source)C# backend with ASP.NET</p> <p>Why Azure?</p> <p>Extremely powerfulYou can do almost anything your backend would ever need to do with Azure. Data storage, authentication/authorization, push notifications, custom APIs, blob storage, etc.FlexibleNeed something lightweight? Azure is there.Need something robust and powerful? Azure is there.C# clientsIm 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# clientAbstracts away much of pain of using a RESTful APIC# FeaturesAsync / Await / TPLUses C# idiomsProperties, Fluent APISeems obvious, but not always true (first class citizen)</p> <p>14</p> <p> Shared C# codebase 100% native API access High performance iOS C# UI Windows C# UIAndroid C# UIShared C# Mobile</p> <p> C# Server</p> <p> Linux/MonoCoreCLR</p> <p>AzureShared C# Client/ServerXamarin Apps + Backend Services</p> <p>With Xamarin it just isnt 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!Build 2015 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.10/28/16 4:58 PM15</p> <p>REST API</p> <p>Offline sync</p> <p>Push Notifications</p> <p>Data connections</p> <p>User Authentication</p> <p>FacebookTwitterMicrosoftGoogleAzure Active Directory</p> <p>Azure Mobile Apps</p> <p>Windows</p> <p>AndroidChromeiOS OSX</p> <p>In-App</p> <p>Kindle</p> <p>Xamarin, iOS, Android &amp; Windows SDKsBackend code</p> <p>SQL</p> <p>MongoTables</p> <p>O365</p> <p>API Apps</p> <p>Offline Sync</p> <p>Create a Mobile ServiceMobileService = new MobileServiceClient("https://myapp.azurewebsites.net");</p> <p>1710/28/16 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.</p> <p>Create TablesIMobileServiceSyncTable table;public async Task Init(){ const string path = "syncstore.db"; var db = new MobileServiceSQLiteStore(path); db.DefineTable();</p> <p>}</p> <p> var handler = new MobileServiceSyncHandler(); await MobileService.SyncContext.InitializeAsync(db, h); table = MobileService.GetSyncTable();</p> <p>1810/28/16 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.</p> <p>Get and Modify Datapublic async Task GetStoresAsync(){ await table.PullAsync("allStores", table.CreateQuery()); return await table.ToEnumerableAsync();}public async Task AddStoreAsync (Store store){ await table.InsertAsync (store); await table.PullAsync("allStores", table.CreateQuery()); await MobileService.SyncContext.PushAsync(); return store;}</p> <p>1910/28/16 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.</p> <p>Lets add a backend</p> <p>So Much More</p> <p>21</p> <p> Shared C# codebase 100% native API access High performance iOS C# UI Windows C# UIAndroid C# UIShared C# Mobile</p> <p> C# Server</p> <p> Linux/MonoCoreCLR</p> <p>AzureShared C# Client/ServerMobile + Server</p> <p>With Xamarin it just isnt 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!Build 2015 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.10/28/16 4:58 PM22</p> <p>Rolling your own account infrastructure is difficult and time-consumingSecure your app with prebuilt authentication providersFacebookTwitterGoogleMicrosoftAzure ADAnything OAuth 2Authentication</p> <p>What if a GetAll should only return favorites for that user.23</p> <p>Easy-to-use, multiplatform scaled push infrastructure that allows you to send push notifications almost anywhere.</p> <p>Push Notifications</p> <p>SO Hard!Azure makes it easyHuge value in having this integrated with data... you can just say fire a push IF24</p> <p>Sync files to Azure Storage, just like you did for structured data.File Sync</p> <p>25</p> <p>Lunch!</p> <p>AlejandroRuizCTO @ Los Xamarinosalejandro@alejandroruizvarela.comhttp://alejandroruizvarela.blogspot.mx@alejandroruizva</p> <p> 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.10/28/1626</p>