1 / 26

Building Windows 8.1 Apps with Mobile Services

Building Windows 8.1 Apps with Mobile Services. Speaker Name Speaker Title Speaker Company Email: Twitter:. Agenda. Mobile Services. Data Storage. Push Notifications. Auth *. Other Features and Scaling. Questions. What is Mobile Services?. Auth. Data. Notifications.

pascha
Download Presentation

Building Windows 8.1 Apps with 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 Windows 8.1 Apps with Mobile Services Speaker Name Speaker Title Speaker Company Email: Twitter:

  2. Agenda Mobile Services Data Storage Push Notifications Auth* Other Features and Scaling Questions

  3. What is Mobile Services? Auth Data Notifications Logging & Diag Server Scripts + Custom API Scheduler Scale

  4. Getting Started

  5. Structured Storage Powered by SQL Database Same DB – Multiple Mobile Services AppX.Todoitem AppY.Todoitem Data management in Windows Azure Portal SQL Portal, SQL Management Studio REST API CLI Tools

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

  7. JSON to SQL Type Mappings

  8. Server Side Scripts Customizing logic on the server Node.js scripts Intercept CRUD requests to tables Passes through to SQL by default Fully customizable logic flow

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

  10. Adding Server Scripts

  11. Push Notification Lifecycle Overview Mobile Services Windows 8 Request Channel URI Register with your Cloud Service Authenticate & Push Notification App (2) (3) (1) Windows Push Notification Service Notification Client Platform (3)

  12. Push Notifications Integrates with WNS to provide Toast, Tile, Badge and Raw notifications Portal captures your WNS client secret and package SID push.wns.* provides: clean easy object model to compose notifications Performs auth against WNS for you

  13. Push Notifications • Made easy with the VS 2013 Wizard

  14. Auth* Authenticate against Microsoft Account, Twitter, Facebook, Google Table level permissions for each CRUD operation Everyone Anyone with the Application Key Only Authenticated Users Only Scripts and Admins More granular control with server side scripts user.level: {admin, authenticated, anonymous} user.userId: id or undefined if not authenticated

  15. The User object User.level Anonymous Authenticated Admin User.userId Provider:id or undefined User.getIdentities() UserId Provider Access Token / Secret

  16. Adding Authentication

  17. More on script options: Custom API Non-table based scripts Accessible from Get Post Put Patch Delete Same permissions as tables

  18. More on script options: The Scheduler Execute scripts on a schedule Execute scripts on demand Frequency and length of execution based off of service level Ideal for backend data processing

  19. Custom API, Scheduler

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

  21. 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

  22. Diagnostics, Logging, Scale

  23. Mobile Services Tiers service level agreements usage & licensing $ General Availability99.9% *Active devices refers to the number of physical devices and emulators that make at least one call to or receive a push notification from your mobile service.

  24. Windows Azure Mobile Services Auth Data Notifications Logging & Diag Server Scripts + Custom API Scheduler Scale

  25. Resources Videos, Tutorials, Code Samples and More http://www.windowsazure.com/mobile Get a Windows Azure Free Trial Account http://www.windowsazure.com If you wanted to see how the NuGets are implemented Client SDK source code on GitHub https://github.com/WindowsAzure/azure-mobile-services Contact Details mobileservices@microsoft.com Feature Requests

More Related