In this article

Unsupported APIs for background agents for Windows Phone 8

05/20/2016

2 minutes to read

In this article

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

There is a set of APIs that cannot be used in code executed by a Scheduled Task. This includes code contained in classes that implement ScheduledTaskAgent as code in any libraries that are called from a ScheduledTaskAgent. Some of these APIs are detected by the development tools and will raise an error at run or compile time. Other APIs are restricted by the Store application submission process.

Noteworthy APIs for Use with Scheduled Tasks

This API, used for obtaining the geographic coordinates of the device, is supported for use in background agents, but it uses a cached location value instead of real-time data. The cached location value is updated by the device every 15 minutes.