Solutions for getting notifications coming from application working in the background


  • Hi,


    I'm working on developing an win8 metro application that needs to achieve 2 specific goals:

    1) Work seamlessly in the background, without any apparent gui, whenever the system is running (starting at the system start)

    2) When a specific event occurs (this events origin is not a third party server) show a (toast) notification


    My first direction was to go with a windows service, but the second goal seams unfeasible with it. What are the most common ways to write applications with such requirements - is using task scheduler a common solution?



    Wednesday, November 16, 2011 1:51 PM


  • Requirement one requires be a service, assuming you really need it always running even with no users on.

    Services cannot show UI at all: they run in an isolated session and are not associated with an interactive user. Any UI would come from a separate app which runs interactively and communicates through some form of IPC with the service. Neither of these would be Metro style apps.  See Interactive Services You can probably find lots of discussion on this in the Windows Desktop Development Forums.

    Raising a Metro style toast from desktop apps is not yet available in the Developer Preview.


    Wednesday, November 16, 2011 2:18 PM