Applicable to: Windows Phone 8 | Windows Phone OS 7.1
A group of Apis cannot be used in code executed by scheduled tasks. This includes implementing the Code contained in the ScheduledTaskAgent class in the form of code in any library called by ScheduledTaskAgent. Some of these APIs are detected by development tools and will cause errors during runtime or compilation. Other APIs are restricted by the shop application submission process.
This topic contains the following sections.
- Unsupported API
- APIS to be aware of when you plan tasks
Unsupported API
The following table lists APIs not supported by scheduled tasks in each namespace. All APIs in some namespaces are not supported.
Namespace |
Unsupported API |
Microsoft. Devices |
Camera |
Microsoft. Devices |
VibrateController |
Microsoft. Devices |
NowPlaying |
Microsoft. Devices. Radio |
All APIs in this namespace are not supported. |
Microsoft. Devices. Sensors |
All APIs in this namespace are not supported. |
Microsoft. Phone. BackgroundAudio |
BackgroundAudioPlayer |
Microsoft. Phone. BackgroundTransfer |
Add (BackgroundTransferRequest) |
Microsoft. Phone. Controls |
WebBrowser |
Microsoft. Phone. Info |
IsKeyboardDeployed |
Microsoft. Phone. Notification |
All APIs in this namespace are not supported. |
Microsoft. Phone. Scheduler |
Add (ScheduledAction) Remove (String) Replace (ScheduledAction) |
Microsoft. Phone. Shell |
All APIs except the following APIs are not supported:
ShellToast class
ShellTileData method of the ShellTile class. All FlipTileData, CycleTileData, and CycleTileData objects can be updated.
The Delete () method of the ShellTile class.
ActiveTiles attribute of the ShellTile class.
|
Microsoft. Phone. Tasks |
All APIs in this namespace are not supported. |
Microsoft. Xna .* |
Windows Phone 8 does not support all APIs in all XNA Framework namespaces, except for the following:
Picture
PictureAlbum
PictureAlbumCollection
PictureCollection
In Windows Phone versions earlier than Windows Phone 8, all XNA Framework namespaces are not supported. |
System. Windows |
MessageBox |
System. Windows |
Clipboard |
System. Windows. Controls |
MediaElement |
System. Windows. Controls |
MultiScaleImage |
System. Windows. Media |
LicenseAcquirer |
System. Windows. Media |
A/V Capture |
System. Windows. Navigation |
All APIs in this namespace are not supported. |
APIS to be aware of when you plan tasks
GeoCoordinateWatcher |
This API is used to obtain the geographical coordinates of a device. It can be used in a background proxy, but it uses cached location values instead of real-time data. The device updates the cache Location Value every 15 minutes. |
Mutex class |
Use the Mutex class to synchronize access to resources (such as files in independent storage) shared between foreground applications and background proxies. |
ShellToast class |
This class can be used to pop up the Toast notification from the running background proxy. |
ShellTileData method of the ShellTile class Delete () method of the ShellTile class ActiveTiles attribute of the ShellTile class |
These methods can be used to modify the shell block in the running background proxy. Note that you cannot create a shell graph block in the background proxy. |
HttpWebRequest class |
This class allows you to perform Web requests from a running background proxy. |