23.01.2018 Views

MICROSOFT_PRESS_EBOOK_PROGRAMMING_WINDOWS_8_APPS_WITH_HTML_CSS_AND_JAVASCRIPT_PDF

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

• Periodic updates for tiles and badges means providing Windows the URIs of web services to call<br />

at selected intervals between 30 minutes and 24 hours. Periodic updates are the easiest and<br />

lower-cost means to update a tile from a running web service.<br />

• Push notifications for tiles, badges, toast notifications, and raw notifications (whatever data an<br />

app wants to manage) can be used for higher-frequency, user-specific updates. This involves<br />

creating web services that communicate with WNS to issue those notifications to specific<br />

channel URIs, a process that is much more involved and expensive than periodic updates.<br />

• Background tasks are small pieces of code that an app configures to run when certain triggers<br />

occur, such as changes in connectivity, timers, receipt of push notifications, and app updates.<br />

Apps should never depend on background tasks, however, because they are always under the<br />

user’s control.<br />

• Background task triggers can be refined through specific conditions to avoid running tasks when<br />

it’s not necessary (such as when there is no connectivity).<br />

• Some triggers require that the app has also been added to the lock screen. Such apps must first<br />

request access, which is subject to user consent, and the user must specifically add the app<br />

through PC Settings. Given that privilege, apps can issue badge updates and tile text to the lock<br />

screen.<br />

• Through maintenance triggers, apps can also set up tasks to run periodically when a device is on<br />

AC power.<br />

629

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!