1 / 31

Building Android Apps with Mobile Services

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

gelsey
Download Presentation

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

  2. Agenda Mobile Services Data Storage Push Notifications Security and Authentication Other Features and Scaling Questions

  3. What is Mobile Services? Auth Data Notifications Logging & Diag Server Logic Scheduler Scale

  4. Getting Started

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

  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 Notifications Mobile Services Client Register for push notifications with GCM Send your identifier to Mobile Service Send push from server scripts GCM delivers notification to device App (2) (3) (1) GCM (4)

  12. Push Notifications

  13. Data Authorization Per HTTP method authorization options: • App Key required • Shouldn’t be used in production • Everyone • Authenticated Users • Admins and other scripts • Requires the Master Key (from client) 400 / Unauthorized response if a call doesn’t pass

  14. User Auth Flow (server) GOOGLE CREDENTIALS (via oAuth/WebView) FACEBOOK AUTH TOKEN DEVICE GRAPH ACCESS (LIMITED) TWITTER IDENTITY MICROSOFT MOBILE SERVICE

  15. User Auth Flow (client) CREDENTIALS(via native SDKs) GOOGLE AUTH CODE AUTH CODE + TOKEN FACEBOOK GRAPH ACCESS DEVICE GRAPH ACCESS TWITTER MICROSOFT IDENTITY MOBILE SERVICE

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

  17. Adding Authentication

  18. 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!

  19. Using the CLI

  20. Using 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

  21. Custom API Non-table based scripts Accessible from • Get • Post • Put • Patch • Delete Same permissions as tables

  22. Script Source Control Handled through GIT repo Access to table, scheduler, custom API, shared scripts, and permissions Shared Scripts Make scripts accessible from other scripts Just like creating Node.js modules NPM Ability to use ‘npm install module’ to download NPM modules

  23. Scheduler, Script Source Control, • Custom API, NPM

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

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

  26. Diagnostics, Logging, Scale

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

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

  29. Resources Get a Windows Azure Free Trial Account http://www.windowsazure.com Videos, Tutorials, and More http://www.windowsazure.com/Android Source code on GitHub https://github.com/WindowsAzure/azure-mobile-services Contact Details mobileservices@microsoft.com Feature Requests

  30. OAuth Authentication Flow

More Related