Building Windows Phone Apps with Windows Azure Mobile Services

Slides:



Advertisements
Similar presentations
Building Windows Store Apps with Windows Azure Mobile Services Name Title Organization.
Advertisements

Attie Naude 14 May 2013 Windows Azure Mobile Services.
Power BI Sites and Mobile BI. What You Will Learn Sharing and Collaboration Introducing Power BI Exploring Power BI Features and Services Partner Opportunities.
Windows Azure Mobile Services. Data Push Notifications Auth Scheduler Diagnostics & Scale Agenda.
| Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada
Cross Platform Mobile Backend with Mobile Services James
Windows Azure Conference 2014 Windows Azure Mobile Services from ground up.
Building Android Apps with Mobile Services Speaker Name Speaker Title Speaker Company Twitter:
Building Android Apps with Windows Azure Mobile Services Chris Risner Technical Evangelist Microsoft
demo Cloud Storage WA Blobs Schema Management APIs & Portal Web Roles Integration Pipeline 3 rd Party Web Services 3 rd Party Store 3 rd Party.
Building iOS Apps with Windows Azure Mobile Services Chris Risner Technical Evangelist Microsoft
Building Connected Android Apps Chris Risner Technical Evangelist Microsoft
Building Connected Android Apps with Azure Chris Risner Technical Evangelist
Building iOS Apps with Windows Azure Mobile Services Chris Risner Technical Evangelist Microsoft
SDKs Source control, table scripts, custom API & Scheduler FacebookTwitterMicrosoftGoogle Active Directory SQL Table Storage Blob Storage WNS & MPNS.
Building Connected iOS Apps With Mobile Services Chris Risner Senior Technical Microsoft Azure.
Building Windows Store Apps with Windows Azure Mobile Services Name Title Organization.
Building Windows Phone Apps with Mobile Services Speaker Name Speaker Title Speaker Company Twitter:
Building Connected Windows Store apps with Windows Azure Mobile Services Nick Harris Windows Azure Tech Evangelist Microsoft Corporation WCL217.
Sage Franch | Technical Evangelist Susan Ibach | Technical Evangelist.
Building Windows Store Apps with Windows Azure Mobile Services Nikola Metulev Windows Platform Technical Evangelist.
Сергей Байдачный Майкрософт Украина
PowerApps & Flow Licensing Overview for Partners
5/22/2018 1:39 AM BRK2156 Power BI Report Server: Self-service BI and enterprise reporting on-premises Christopher Finlan Senior Program Manager © Microsoft.
Azure Mobile Services + Windows Phone 8
S4 Solution Specialist Sales Summit
Mobile App Trends: lifecycle, functions, and cognitive
Microsoft Virtual Academy
Windows Azure Mobile Services
6/16/2018 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
Build /4/2018 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
SQL Server Data Tools for Visual Studio Part I: Core SQL Server Tools
Developing an app for SharePoint autohosted in Azure
Building Cross-Platform Apps with Windows Azure Mobile Services
Cloud Database Based on SQL Server 2012 Technologies
Hybrid Apps: Azure Mobile Engagement and the App Economy
Building great Metro style apps for mobile broadband devices
Power Apps & Flow for Microsoft Dynamics SL
Overview of Azure Data Lake Store
Microsoft /12/2018 8:06 AM BRK2103 Deliver more features faster with a modern development and test solution Claude Remillard Group Program Manager.
TechEd /21/2018 5:20 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Building Windows Phone 7 Applications with the Windows Azure Platform
12/2/ :59 AM AZR214 Developing Connected Windows Store Apps with Windows Azure Mobile Service: Overview (200) Nick Harris Sr. Technical.
TechEd /4/2018 3:19 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Microsoft Virtual Academy
Getting started with Windows Azure
TechEd /28/ :27 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Agenda OAuth Concepts Programming OAuth.
Microsoft Virtual Academy
TechEd /11/ :21 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
TechEd /11/ :54 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
TechEd /15/2019 8:08 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
1/16/2019 8:14 PM SAC-863T Delivering notifications with the Windows Push Notification Service and Windows Azure Darren Louie, Nick Harris Program Manager,
TechEd /18/ :01 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Microsoft Virtual Academy
Office 365 Development.
Building and running HPC apps in Windows Azure
Consumer Mobile Apps that Scale
Using tiles and notifications
Service Template Creation from the Ground Up
Service Template Creation from the Ground Up
Microsoft Virtual Academy
Day 2, Session 2 Connecting System Center to the Public Cloud
Office 365 Development July 2014.
Sessions about to start – Get your rig on!
Microsoft Virtual Academy
Erik Porter Program Manager ASP.NET Microsoft Corporation
Building Windows Store Apps with Windows Azure Mobile Services
Microsoft Virtual Academy
Presentation transcript:

Building Windows Phone Apps with Windows Azure Mobile Services 9/22/2018 Building Windows Phone Apps with Windows Azure Mobile Services Dmitry Krainyk DataArt © 2012 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.

Agenda Windows Azure Mobile Services Data Push Notifications Auth Diagnostics & Scale

What is Windows Azure Mobile Services? 9/22/2018 What is Windows Azure Mobile Services? Auth Server Logic Notifications Logging & Diag Slide Objectives: Provide broad overview of WA Mobile Services features Speaking Points: WAMS – Backend for mobile clients. WAMS Build a cloud backend in minutes with no hassles, no deployments, no fear Supports Windows 8 client SDK, Windows Phone 8 SDK, iOS SDK Android coming soon Data Structured Storage with SQL Database Automatic service api generated for storage Rich querying capability Server Logic Automatic CRUD service api generated Ability to author server logic that intercepts CRUD operation pipeline Auth Authenticate against Windows Live Table level authorization with no code More granular control with server side scripts Notifications Integrates with WNS to provide Toast, Tile, Badge and Raw notifications Clean object model to compose notifications Scheduler Scheduler allows you to run Scripts to perform tasks at a scheduled basis minutes, hrly, daily, monthly or on demand. Example – aggregate News RSS feeds and send a tile update every 15 minutes Logging and Diagnostics for monitoring Scale out and Scale up Data Scheduler Scale © 2012 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.

Key Scenarios Modern mobile apps Common Scenarios Rapid Development Windows Azure Mobile Services are ideal for: Modern mobile apps Windows Store Apps, Windows Phone, iOS, Android Common Scenarios Reduces the friction associated with repeating common tasks such as user authentication, push notifications and structured storage Slide Objectives: Outline the Key Scenarios Mobile Services can be used for Rapid Development Time is money. Get your app up and running sooner when you use Mobile Services to configure a straightforward and secure backend in less than five minutes.

Server Logic Automatic service REST API generated for storage Dynamic Schema on/off Ability to author server logic that intercepts CRUD operation pipeline Rich querying capability Custom API Slide Objectives: Detail the Server Logic capability Speaking Points: On creating of a Mobile Service a dynamic REST API is generated that sits on top of your structured storage Dynamic Schema When Dynamic Schema is enabled, your Mobile Service will automatically add columns to tables as necessary to store incoming data. When Dynamic Schema is disabled, your Mobile Service will only accept data whose properties correspond to existing columns on your tables.

Server Logic Supported Modules + Globals mssql request console push.* tables statusCodes mssql.query('select top 1 * from statusupdates', { success: function(results) { console.log(results); } ); Slide Objectives: Detail the Modules and Globals available to server side scripts. Speaking Points: Talk through the slide Push.* currently supports push notifications for W8 (push.wns), WP8 (push.mpns), iOS (push.apns), Android coming soon A subset of Node.js modules are also supported Performing SQL queries is something that some people are not aware of. Instead of tables if you want to use mssql you can execute sql directly. One useful example of this would be to execute a store procedure Latest full list here: http://msdn.microsoft.com/en-us/library/windowsazure/jj554226.aspx

Structured Storage Structured Storage with SQL Database If using single database apps are partitioned by schema AppX.Todoitem AppY.Todoitem Manage data in Portal SQL Portal SQL Management Studio REST API… Slide Objectives: Detail the structured storage feature Speaking Points: Structured storage provided by WAMS is backed by a Windows Azure SQL Database DB can be Multi-tenant i.e 10 Mobile services can all use the one SQL Database. In this scenario each DB is partitioned by Schema Multiple ways admins can access the raw data being stored.

REST API to SQL type mappings JSON Value T-SQL Type Numeric values (integer, decimal, floating point) Float Boolean Bit DateTime DateTimeOffset(3) String Nvarchar(max) Slide Objectives: Detail the current REST API JSON value to T-SQL type mappings Speaking Points: Table shows the current JSON type mapping to T-SQL mapping used when columns are dynamically generated. As we iterate on mobile services you will see the list of type mappings grow

Push Notification Lifecycle Overview WP 8 Mobile Services Request Channel URI Register with your Cloud Service Authenticate & Push Notification App (2) (3) (1) Slide Objectives: Detail the push notification lifecycle to give context for the demo coming up WNS is free Speaking Points: Show the start screen and talk about how push notifications can be used to lightup the start screen Green components are those FREE services Microsoft provides Blue components are those components that the application developer must write. Step 1 – using the WinRT API request a channel. A channel uniquely identifies an app and its tile. Step 2 – channel is then registered and stored in your Mobile service Step 3 – When your application specific logic determines that it is time to send a notification you can retrieve the channel and compose a notification to be sent. This is a two step process that first requires your service to auth against WNS and then compose and send a notification. Mobile Services makes this step incredibly easy. Step 3 - part 2 – WNS will take care of delivering the notification and the Notification client platform will deal with surfacing that notification for you and rendering the tile/toast/badge etc Notification Client Platform Windows Push Notification Service (3)

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 Slide Objectives: Detail Auth options Speaking Points: Windows Azure Mobile Services enables you to set the following permissions on table operations: Everyone: This means that any request for the operation against the table is accepted. This option leaves your data wide-open for everyone to access. Anybody with the Application Key: Only the correct application key is required to perform the operation. The application key is distributed with the application. Because this key is not securely distributed, it cannot be considered a security token. To secure access to you mobile service data, you must implement authentication. Only Authenticated Users: Only authenticated users are permitted to perform the operation. In this preview release, clients are authenticated by Live Connect services. Scripts can be used to further restrict access to tables based on an authenticated user. Only Scripts and Admins: The operation requires the service master key, which limits the operation only to registered scripts or to administrator accounts. The user parameter is available in all server side scripts methods and can be used to add more granular auth polices on you CRUD operations Notes:

Scheduler Execute scripts on a Schedule by Minutes by Hours by Days By Months Execute scripts on Demand Examples Periodic purge of old data Poll and aggregate from 3rd party (Twitter, RSS, others) Process/resize images Schedule sending push notifications for a given time of day Slide Objectives: Detail Auth options Speaking Points: Support for additional auth providers such as Facebook are coming soon Windows Azure Mobile Services enables you to set the following permissions on table operations: Everyone: This means that any request for the operation against the table is accepted. This option leaves your data wide-open for everyone to access. Anybody with the Application Key: Only the correct application key is required to perform the operation. The application key is distributed with the application. Because this key is not securely distributed, it cannot be considered a security token. To secure access to you mobile service data, you must implement authentication. Only Authenticated Users: Only authenticated users are permitted to perform the operation. In this preview release, clients are authenticated by Live Connect services. Scripts can be used to further restrict access to tables based on an authenticated user. Only Scripts and Admins: The operation requires the service master key, which limits the operation only to registered scripts or to administrator accounts. The user parameter is available in all server side scripts methods and can be used to add more granular auth polices on you CRUD operations Notes:

Diagnostics, Logging and Scale API calls CPU Time Data Out Logging console.error(…) console.log(…) Scale - Compute Scale out instance count Scale up VM size Scale - Storage Scale out mobile service tenant to dedicated SQL DB Scale up SQL DB capacity Slide Objectives: Detail what Mobile Services provides as far as Diagnostics, Logging and Scale is concerned Speaking Points: Note when moving a Mobile Service from a multi-tenant DB to its own. Currently data is not automatically migrated.

Pricing during Preview shared mode reserved mode service level agreements Shared Instance Small instance is the only size available Free - 10 applications with unlimited inbound data. Capped max of 165MB outbound data/day Pay - SQL Database Preview No availability SLA* General Availability 99.9% Private VM Small instance is the only size available Free - unlimited inbound data. 165MB outbound data/day, excess charged. Pay - SQL Database, Compute same reduced rate as Web Sites i.e 33% discount, excess outbound transfers starting at $0.12/GB Up to 100 applications Notes: More Details here - http://www.windowsazure.com/en-us/pricing/details/#header-0 SLA While Mobile Services is in preview, it can be used with apps in production, if customers ask for SLA and support, both can be provided by the product team upon request as part of the early adopters program, contact zumosla@microsoft.com for details.

$5/ Month = Pricing Example: How? Unlimited ingress = <165MB daily egress 10 x Mobile Services on shared instances 100MB SQL Database How? 10 FREE mobile services on shared instance Includes 165MB/day of FREE egress from API calls Cost - All services sharing a 100MB DB is $5 USD / Month Use Pricing Calculator to Estimate your costs Slide Objectives: Detail the free offer during Preview Speaking Points: 10 FREE mobile services running on shared instances during Preview 1 Mobile Service = 1 backend for an app. Each mobile service can utilize multiple features ie a mobile service for to do app can use user auth, multiple types of push, and structured storage and still count as one mobile service. Database 100MB SQL DB is shared by all 10 mobile services. Note during creating of mobile service you can specify dedicated DB if you wish. Bandwidth Ingress unlimited FREE Shared mode egress capped at 165MB/day FREE. Can upgrade to Reserved mode with excess egress billed starting at $0.12USD /GB Notes: Use pricing calculator link to show 1GB DB cost, then switch to reserved mode to show costs SLA While Mobile Services is in preview, it can be used with apps in production, if customers ask for SLA and support, both can be provided by the product team upon request as part of the early adopters program, contact mobileservices@microsoft.com for details. Note: Free Egress is per subscription, not per mobile service

Q&A: Dmitry Krainyk, DataArt 9/22/2018 Q&A: Dmitry Krainyk, DataArt Learn more & try tutorials Tutorials, Samples, Reference Docs: http://www.windowsazure.com/mobile Help with Mobile Services Q&A Forum: Windows Azure Mobile Services Forum Feedback: mobileservices@microsoft.com Twitter: @cloudnick (Windows 8, Windows Phone 8), @chrisrisner (iOS, Android) Presentations, demos, hands on labs Windows Azure Training Kit: Download here © 2012 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.