BackgroundTask with PushNotificationTrigger RRS feed

  • Question

  • Hi to all! I have some troubles with creating background task.

    I add some code in manifest:

    <Extension Category="windows.backgroundTasks" EntryPoint="BackgrowndTask.PushNotificationReciever">
                <Task Type="pushNotification" />

    create some BT:


                        builder.Name = "PushNotificationReciever";
                        builder.TaskEntryPoint = "BackgrowndTask.PushNotificationReciever";
                        builder.SetTrigger(new new PushNotificationTrigger());                    


    and create PushNotificationReciever:

     public sealed class PushNotificationReciever : IBackgroundTask
            public void Run(IBackgroundTaskInstance taskInstance)



    Let my App run in the background (to show quick status and notifications on lock screen). But after I run App, I can't find PushNotification Reciever in LifeCycle Events.
    What's wrong in my code?

    Wednesday, February 11, 2015 1:01 PM

All replies

  • did you used BackgroundExecutionManager.requestAccess ?

    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    Wednesday, February 11, 2015 1:03 PM
  • Yes, I do. And I chack it.

    var status = BackgroundExecutionManager.GetAccessStatus();

    my App is AllowedMayUseActiveRealTimeConnectivity.

    Wednesday, February 11, 2015 3:19 PM