12/5/2018 4:31 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.

Slides:



Advertisements
Similar presentations
Windows 8 Tips & Tricks for XAML based Windows Store App Ronnie Saurenmann Microsoft
Advertisements

Advanced Windows 8 Apps Using JavaScript Jump Start Exam Prep Advanced Windows 8 Apps Using JavaScript Jeremy Foster Microsoft Developer Evangelist.
Windows 8 Tips & Tricks for XAML based Windows Store App Ronnie Saurenmann Microsoft
Multitasking and Triggered Background Processing
9/24/2017 7:27 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
11/12/ :06 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
B8093 Nextgen UWP app distribution:  Building extensible, stream-able, componentized apps John Vintzel, Principal Program Manager Lead Sandeep George,
DoRon Motter Development Lead Microsoft Corporation
5/2/2018 1:53 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS.
5/3/2018 2:15 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS.
Windows Calls Applications (windows.applicationmodel.calls)
5/7/ :29 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Microsoft Ignite /10/2018 3:38 AM
Wireless Communication and Networks
Windows Developer Day Fall Creators Update Chris Cortes
6/12/2018 3:52 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
6/13/2018 1:23 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Timesheets and Statusing in Project 2013
Microsoft Connect /26/2018 1:00 AM
9/11/ :55 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Microsoft Build /13/2018 2:24 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Desktop App Converter (Project Centennial)
Customizing your device experience with assigned access
Microsoft Build /17/2018 5:42 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Modernizing App Experiences
Microsoft Build /19/2018 7:06 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Building great Metro style apps for mobile broadband devices
Microsoft Build /22/2018 3:05 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Microsoft Build /9/2018 8:05 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Microsoft Build /10/2018 3:26 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Windows Phone multitasking
DotnetConf 11/14/2018 3:27 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE.
Building Apps for Windows Phone 8.1 Jump Start
Protecting Premium Video in Windows
11/19/ | App Model & Storage © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
11/22/2018 1:45 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
11/23/2018 8:30 AM BRK3037 BRK3037: Dive deep on building apps and services with the Office 365 Communications Platform David Newman Senior Program Manager.
Bring existing desktop apps to UWP with the Desktop Bridge
Hosted Web Apps with Windows App Studio
11/27/2018 4:20 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Tooling and Diagnostics
TechEd /29/ :46 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
12/2/ :23 PM APP-410T Real time communication: keep your Metro style app connected whether it is running or suspended Raghu Gatta Principal Development.
A/B Testing for UWP Apps: Experiment for Success
Manual testing using TFS 2017
12/25/2018 5:11 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Improving JavaScript Frameworks, Edge, & UWP Web Apps
File type associations and AutoPlay
1/2/2019 9:19 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS.
Introducing Metro style device apps
Microsoft Connect /17/2019 9:55 PM
Microsoft Build /18/ :04 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Internal social media units
2/16/2019 1:48 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Bringing desktop apps to the UWP using Desktop App Converter
Intro to Bluetooth Background Communication
Apps that balance work and personal Building apps that keep work and personal data safe and secure Derek Adam Rohith Gowda.
Introduction to VSTS Database Professional
4/12/2019 5:27 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Windows Device Portal Hirsch Singhal Program
Windows 8 Security Internals
Using Expression Animations to Create Engaging & Custom UI
4/29/2019 9:20 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
5/3/2019 9:33 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS.
4/29/ :17 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
SharePoint 2013 Authentication with Azure – Part 2
User Segmentation and Targeted Push Notifications for UWP apps
5/30/2019 1:59 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION.
Jamie Cool Program Manager Microsoft
WCL425 App Compat for Nerds Chris Jackson.
Presentation transcript:

12/5/2018 4:31 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

What’s new for multi-tasking in UWP? 12/5/2018 4:31 AM P4172 What’s new for multi-tasking in UWP? Chris Cortes Program Manager © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Multitasking and Background Activity 12/5/2018 4:31 AM Multitasking and Background Activity Background Task and Application Lifecycles New Multitasking Scenarios User Controls and Best Practices © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Process Lifecycle 12/5/2018 4:31 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Background Task Lifetime 12/5/2018 4:31 AM Background Task Lifetime Ideal Terminated Canceled Run() Run() Run() Cancel() Execution Time Default Background Tasks 25s Running time 5s Canceled time Separate Component Separate Project IBackgroundTask © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Application Lifecycle 12/5/2018 4:31 AM Application Lifecycle In-Process Introduced in the Anniversary Update App states Not Running Running Suspended App Callbacks Launched/On Activated Suspending/Resuming EnteredBackground/LeavingBackground © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Background Scenarios 12/5/2018 4:31 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Triggers Sensors Bluetooth Toasts Network System Trigger Local Data 12/5/2018 4:31 AM Triggers GattCharacteristicNotificationTrigger GattServiceProviderTrigger BluetoothLEAdvertisementWatcherTrigger BluetoothLEAdvertisementPublisherTrigger RfCommConnectionChangeTrigger DeviceUseTrigger DeviceConnectionTrigger DeviceServicingTrigger DeviceWatcherTrigger Sensors Bluetooth ToastNotificationActionTrigger ToastNotificationActionHistoryChangedTrigger UserNotificationChangedTrigger PushNotificationTrigger SocketActivityTrigger TimeTrigger MaintenanceTrigger Toasts Network UserAway UserPresent TimeZoneChange ServicingComplete PowerStateChange NetworkStateChange InternetAvailable AppointmentStoreNotificationTrigger ContactStoreNotificationTrigger EmailStoreNotificationTrigger CachedFileUpdaterTrigger Local Data System Trigger © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

12/5/2018 4:31 AM Trigger Demo © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Trigger Demo Recap Background Task Code in the Main App Project 12/5/2018 4:31 AM Trigger Demo Recap Background Task Code in the Main App Project Background Activated No Manifest Entry Required Registration Groups in Creators Update © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Background Task Registration Group 12/5/2018 4:31 AM Background Task Registration Group const string MyTaskGroupId = "4F8904E0-3F25-9A0C-41D3-0305E82C3333"; const string MyTaskGroupDebugName = "My Task Group"; var group = BackgroundTaskRegistration.GetTaskGroup(MyTaskGroupId); if (group == null) { group = new BackgroundTaskRegistrationGroup(MyTaskGroupId, MyTaskGroupDebugName); } var builder = new BackgroundTaskBuilder(); builder.Name = "Tasks Name"; builder.IsNetworkRequested = true; builder.TaskEntryPoint = "Tasks.MyTask"; builder.SetTrigger(myTrigger)); builder.TaskGroup = group builder.Register(); © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Activity Sponsored Execution 12/5/2018 4:31 AM Activity Sponsored Execution Manifest Entry <Capabilities> <uap3:Capability Name="backgroundMediaPlayback" /> </Capabilities> Press Play var player = new MediaPlayer(); player.Source = MediaSource.CreateFromUri(new Uri("https://contoso.com/song.mp3")); player.Play(); No Registration Code, No Background Management © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Extended Execution Run While Minimized Run Longer while Suspending 12/5/2018 4:31 AM Extended Execution Run While Minimized Location Tracking or Unspecified Run without a time limit Run Longer while Suspending Saving Data Revoked on a new activation Ensure good Resource Usage Time Limited on Battery Accepted into Windows Store © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Enterprise Restricted Capability Device Management Policy 12/5/2018 4:31 AM Enterprise Restricted Capability <Capabilities> <rescap:Capability Name="extendedBackgroundTaskTime"/> </Capabilities> Device Management Policy ./Vendor/MSFT/Policy/Config/Privacy/LetAppsRunInBackground ./Vendor/MSFT/Policy/Config/Privacy/LetAppsRunInBackground_ForceAllowTheseApps ./Vendor/MSFT/Policy/Config/Privacy/LetAppsRunInBackground_ForceDenyTheseApps ./Vendor/MSFT/Policy/Config/Privacy/LetAppsRunInBackground_UserInControlOfTheseApps © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

12/5/2018 4:31 AM User Controls © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Privacy User in control Controls all triggers Controls Generic EE 12/5/2018 4:31 AM Privacy User in control Controls all triggers Controls Generic EE Overridden by Group Policy © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Battery Usage Controls 12/5/2018 4:31 AM Battery Usage Controls Different UI per OS Edition Same Group Policy Same developer interface © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Respect User Control and Battery 12/5/2018 4:31 AM Respect User Control and Battery BackgroundAccessStatus backgroundStatus = await BackgroundExecutionManager.RequestAccessAsync(); AlwaysAllowed AllowedSubjectToSystemPolicy DeniedDueToSystemPolicy DeniedByUser BatteryStatus batteryStatus = Battery.AggregateBattery.GetReport().Status; Charging Discharging Idle NotPresent EnergySaverStatus status = PowerManager.EnergySaverStatus; Disabled, Off, On © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Extended Execution Demo 12/5/2018 4:31 AM Extended Execution Demo © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Extended Execution Demo Recap 12/5/2018 4:31 AM Extended Execution Demo Recap Test Lifetime off of the Debugger Extended Execution Session Background Access Status, Battery Status Direct User to Settings App if Needed © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Call to action Build any background scenario you can think of! 12/5/2018 4:31 AM Call to action Build any background scenario you can think of! Check out other Build session recordings on Channel 9. Use the Github samples and tutorials on the next slides. Continue your education at Microsoft Virtual Academy online. Provide Feedback on UserVoice. #MSBuild © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

12/5/2018 4:31 AM Related Sessions B8012 – Tips, Tricks and Secrets: Building a Great UWP App for Windows 10 P4050 – Bridges to UWP for Retail Point-Of-Sale Application Developers P4179 – Bluetooth GATT Server in Windows 10 #MSBuild © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

12/5/2018 4:31 AM Github Samples Out-Of-Proc Background Task: https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/BackgroundTask In-Proc Background Activation: https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/BackgroundActivation Background Media Playback: https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/BackgroundMediaPlayback Extended Execution: https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/ExtendedExecution © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Tutorials App Lifecycle: https://docs.microsoft.com/en-us/windows/uwp/launch-resume/app-lifecycle In-Proc Background Task: https://docs.microsoft.com/en-us/windows/uwp/launch-resume/create-and-register-an-inproc-background-task Group Background Tasks: https://docs.microsoft.com/en-us/windows/uwp/launch-resume/group-background-tasks Background Media Playback: https://docs.microsoft.com/en-us/windows/uwp/audio-video-camera/background-audio Extended Execution: https://docs.microsoft.com/en-us/windows/uwp/launch-resume/run-minimized-with-extended-execution Best Background Practices: https://docs.microsoft.com/en-us/windows/uwp/debug-test-perf/optimize-background-activity

12/5/2018 4:31 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.