Draw users into your app Delight them with features Allowing your app to run logic when it’s not running in front of the user.

Download Report

Transcript Draw users into your app Delight them with features Allowing your app to run logic when it’s not running in front of the user.

Draw users into your
app
Delight them with
features
Allowing your app to run logic
when it’s not running in front of the user
Cancellation can result from resource constraints
An app can have more
than one background task
Windows 8.1
Phone 8.1
CachedFileUpdaterTrigger
DeviceConnectionChangeTrigger
GattCharacteristicNotificationTrigger
RfcommConnectionTrigger
LocationTrigger
AppointmentStoreNotificationTrigger
ContactStoreNotificationTrigger
EmailStoreNotificationTrigger
BluetoothLEAdvertisementWatcherTrigger
BluetoothLEAdvertisementPublisherTrigger
DeviceWatcherTrigger
ActivitySensorTrigger
SensorDataThresholdTrigger
ToastNotificationHistoryChangedTrigger
ToastNotificationActionTrigger
ApplicationTrigger
MediaProcessingTrigger
SocketActivityTrigger
Windows 10
SystemTrigger
TimeTrigger
MaintenanceTrigger
DeviceUseTrigger
DeviceServicingTrigger
PushNotificationTrigger
The time trigger
has a 15 minute floor
Requires Wi-Fi connection
Requires lock screen access
Task execution =
Trigger + [Condition(s)]
Once triggered, tasks
wait for all conditions
Every time a trigger fires
the quota starts over
Memory
Memory
Default tasks
Guaranteed minimum 25s
Run
(25 seconds)
Cancel
(5 seconds)
Long-running tasks
Run
(no end)
End
(no warning, for now)
As long as resources are available
Includes: Application, Maintenance,
and DeviceUse triggers
Background tasks can be cancelled (5 sec)
at any time
Default process
In process
App Container
App Container
app.exe
app.exe
Core
Application
Core
Application
backgroundtaskhost.exe
Background
Task
Default process
Hosted in separate process
Separate memory cap
In-process
Simplified communication
Shares memory caps
backgroundtaskhost.exe
Background
Task
Foreground app starts in
app.exe
Background task starts in
app.exe
User can "exempt" select apps
Still allowed:
With battery saver, the
background execution manager
still returns Approved
Set-AppBackgroundTaskResourcePolicy –Mode Conservative
Get-AppBackgroundTask -ResourceUsage