2
votes

Issue

I want to use a background task to show toast notification in windows phone 8.1. I followed this article to add the background task Microsoft article. The problem is that the background task never runs. Its runs only when I call it from lifecycle events when In debug mode.

1
Please show what you've tried so far.eebbesen
screenshot.. this screenshot shows when its in debug mode. the code for registering is also shown in the screenshot. I have also made it toast capable, and this is what I did in the declaration screenshot.Zain Ullah
and this is what I did in the background task class. screenshot for background task classZain Ullah
I found the problem. Its with the BackgroundExecutionManager.RequestAccessAsync(); .. which Is returning me denied, i.e. its not allowing the application to run the background task. any help –Zain Ullah
@ZainUllah Have you declared the background task in the application manifest?Jogy

1 Answers

1
votes

this is very tricky. but i assume there might be a lot of other background tasks running at the sametime which are not allowing your task to run. try restarting the phone and then launch this app first. that should solve it.