1 / 36

Building Cross-Platform Apps with Windows Azure Mobile Services

Building Cross-Platform Apps with Windows Azure Mobile Services. Chris Risner Technical Evangelist 3-545. Introduction. Windows Azure Technical Evangelist. @ chrisrisner. Mobile Developer. http:// chrisrisner.com. Former .NET developer. Live in Washington. Grew up in Michigan.

mark-barnes
Download Presentation

Building Cross-Platform Apps with Windows Azure Mobile Services

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Building Cross-Platform Apps with Windows Azure Mobile Services Chris Risner Technical Evangelist 3-545

  2. Introduction Windows Azure Technical Evangelist @chrisrisner Mobile Developer http://chrisrisner.com Former .NET developer Live in Washington Grew up in Michigan Co-Organizer of Seattle GDG

  3. Agenda Building Apps Building Apps with Mobile Services Data Storage Push Notifications Security and Authentication Questions

  4. What are we Building Apps for?

  5. How can we Build those Apps? C#, HTML/JS Java Objective-C HTML/JS C#

  6. Which should I use? • ?

  7. Windows Azure Mobile Services Auth Data Notifications Logging & Diag Server Logic Scheduler Scale

  8. Getting started with HTML / JS

  9. Structured Storage • Powered by SQL Database • Same DB – Multiple Mobile Services • Data management in: • Windows Azure Portal • SQL Portal • SQL Management Studio • REST API • CLI Tools

  10. The REST API Base REST API Endpoint URL http://Mobileservice.azure-mobile.net/tables/* Data Operations and their REST Equivalents

  11. JSON to SQL Type Mappings

  12. Server Side Scripts • Customizing data flow on the server Built on top of Node.js Intercept CRUD requests to tables Passes through to SQL by default Fully customizable logic flow

  13. Node Modules • Extensibility through numerous modules request push.* sendgrid console mssql pusher statusCodes azure twilio

  14. Adding Server Logic

  15. Push Notifications Mobile Services Client Register for push notifications Register with your send token to Mobile Service Push from server side scripts App (2) (3) (1) Push Provider (3)

  16. Pushing with Native

  17. User Authentication

  18. Data Authorization • Table level permissions for each operation • Everyone • Anyone with the Application Key • Only Authenticated Users • Only Scripts and Admins • User options in scripts • user.level (admin, authenticated, anonymous) • user.userId (provider:id or undefined)

  19. Adding Authentication with Xamarin

  20. Command Line Tools • Scriptable control from PowerShell / Bash Create / Delete Services Inspect / Delete Table Data Create / Update / Delete Tables and Permissions Create, / Upload / Delete Scripts Scale Up / Down Services Much More!

  21. Using the CLI

  22. Scheduler • Execute scripts on a Schedule • Execute scripts on demand • Frequency and length of execution based off of service level

  23. Custom API • Non-table based scripts • Accessible from: • Get • Post • Put • Patch • Delete • Same permissions as Tables

  24. Script Source Control NPM • Ability to use ‘npm install module’ to download NPM modules • Currently accessible from Custom API only Shared Scripts • Make scripts accessible from other scripts • Like creating Node Modules • Handled through Git repo • Access to table, scheduler, custom API, shared scripts, and permissions

  25. Scheduler, Custom API, Script Source

  26. Diagnostics, Logging, Scale API Calls, CPU Time, Data Out Scale service based off of API Calls Console logging from Scripts Scale SQL DB / Server

  27. Service Scale Free • 500K API calls per subscription per month Standard • 1.5M API calls per unit per month Premium • 15M API calls per unit per month

  28. Diagnostics, Logging, and Scale

  29. Preview Pricing preview pricing & licensing service level agreements $ Reserved (private VM) Small instance is the only size available; multiple may be purchased Charge for Preview will be at the same reduced rate as Web Sites Up to 100 Mobile Services PreviewNo availability SLA Shared (multitenant environment) Small instance is the only size available; multiple may be purchased First 10 Mobile Services are free, with no plans to start charging

  30. Mobile Services GA Pricing service level agreements pricing & licensing $ General Availability99.9% *prorated daily **Active devices refers to the number of unique devices that have both obtained your Mobile Services powered app from a public app store and have made at least one call to your mobile service over the past 30 days.

  31. Windows Azure Mobile Services Auth Data Notifications Logging & Diag Server Logic Scheduler Scale

  32. Cross-Platform Support

  33. Resources • Get a Windows Azure Free Trial Account • http://www.windowsazure.com • Videos, Tutorials and more • http://www.windowsazure.com/mobile • Source code on Github • https://github.com/WindowsAzure/azure-mobile-services • Contact me • http://chrisrisner.com • @chrisrisner

  34. Mobile Services at Build Mobile Services – Soup to Nuts Josh Twist – Thursday 2pm Cross-Platform w/ Mobile Services Chris Risner – Thursday 4pm Protips for Mobile Services Chris Risner – Thursday 5pm Connected Win Phone Apps YavorGeorgiev – Friday 9am Going Live and Beyond Kirill and Paul – Friday 10:30am Delivering Push Notifications to Millions ElioDemaggio – Friday 12pm Who’s that user? Dinesh Kulkarni – Friday 2pm Developing Windows 8.1 apps using Windows Azure Mobile Services Nick Harris – Friday 2pm

More Related