After looking at how you can “upgrade” a Windows 8 application to become a lock screen app, it's time for Gill Cleeren to demonstrate how to extend the lock screen example so it will now be able to send updates from a background process to the lock screen.
Read Part 4 of the 'Background processing in Windows 8' series here:
From the author:
Remember how we saw in part 3 that a specific API became available for the application when the app was allowed on the lock screen? Basically, when doing so, the application can use 3 extra triggers: the Push Notification Trigger, the Network Trigger and the Time Trigger. We’ll start with the first one, the Push Notification Trigger.
We’ve already covered push notifications, so you may be thinking: what do these push notifications have to do with lock screen apps? When using PN regularly, the server will send to WNS (Windows Notification Service) a template XML message. This message contains either a tile, badge or toast string, formatted according to a specific template. The reason for this was that the incoming message on the client machine was received by the Client Notification Platform, which can only read out the templated XML strings.
Continue reading »