Questions tagged [background-agent]
34 questions
1
vote
1 answer
Background Agent Windows Phone 8 run only once?
I do not have any experience with the background agent in windows phone, I am just curious if it is possible to start the background agent and let it run only once? cause according to the research I did it will run every few seconds.
Is there…

Bohrend
- 1,467
- 3
- 17
- 26
1
vote
1 answer
Push Notification inside ScheduledAgent in Windows Phone 8
I would like to achieve a similar task, in which I want to re-establish my push notification channel using background agent. Is it possible?
I am using the following code inside my ScheduledAgent, but its not working. If I cannot access the channel…

Milan Aggarwal
- 5,104
- 3
- 25
- 54
1
vote
0 answers
Background agent synchronization in WP8
I need to share an IsolatedStorage file between foreground (unit tests) and the background agent.
I have code similar to the following:
Foreground:
private Mutex _mut = new Mutex(false, “backgroundShare”);
private Task WriteToFile()
{
……….
…

DSK
- 11
- 2
1
vote
2 answers
WMAppManifest.xml Background Agent error
I am getting a warning for WMAppManifest.xml file after i added a background agent task.
My xml is:

Rishi Jasapara
- 638
- 9
- 33
0
votes
1 answer
How to communicate between a background agent and foreground app?
I have a background agent and a foreground app on Windows Phone Mango. (These are two different projects in the same solution.) When the background agent runs, it inserts records into a database that is accessible to the foreground app. How can I…

Nick Heiner
- 119,074
- 188
- 476
- 699
0
votes
1 answer
Background Agent disabled from phone's settings
My application makes use of a Background Agent to do a periodic task. As told in the background agents' guidelines, I offer the user the choice to enable/disable this feature. I use a ToogleSwitch control with its isChecked property bound. However,…

EduardoAlmeida
- 60
- 5
0
votes
3 answers
Reverse geocoding in my background agent causes my live tile not to update when processing times for rest of code called by agent is fast
I'm having a problem with my Windows Phone 8 weather app's background agent.
Whenever the background agent is run, a new http weather request is made when certain conditions (that are not relevant to the problem I'm having) are met. When these…

Barrrdi
- 902
- 13
- 33
0
votes
1 answer
Windows Phone music player app plays songs from phone library
Im learning windows phone 8 development recently. And started developing music player that plays from phone library. I used MediaLibrary API to get all songs,albums and its working fine now.
What is the problme now is i've assigned…

Archana
- 3,213
- 1
- 15
- 21
0
votes
1 answer
Background Agent - different between Abort() and NotifyComplete()
It's advised to call Abort() to notify the foreground app know that background was canceled intentionally. But how does the foreground app know that?
What's the actually different between Abort() and NotifyComplete()? Does anyone know this?

Khoi
- 119
- 1
- 9
0
votes
1 answer
never ending Windows phone 8 background agent
i Know how to create a background agent and how it invokes its onInvoke method.
now is there any way i can create a background thread in the onInvoke method and do a long running task for 1-2 day?
Please the question is not why would i need this,the…

Shofiqul Alam
- 585
- 1
- 7
- 29
0
votes
0 answers
windows phone 8 background agent can't listen Obscured and Unobscured event in some scenario
I have a background agent running in background that can listen to Unobscured event. But if I pressed home key then lock the device, my background agent can't receive obscured and Unobscured events anymore. Even if I implemented necessary location…

thsieh
- 620
- 8
- 24
0
votes
1 answer
Background agent is scheduled but not launched by OS
I have an issue with background agent execution in Windows Phone 8.
After a successful agent registration it wasn't executed by OS.
I waited 5-10 days - no effect.
The issue is reproduced ONLY on two test devices (lumia 920 and htc x8).
All other…

Mando
- 11,414
- 17
- 86
- 167
0
votes
1 answer
How to keep socket (tcp) connection active when app goes to background in windows phone 8
As i am new to Windows phone development and i am struggling to find a solution that how to maintain a tpc socket connection active when my app goes to background in windows phone 8.
can any one suggest me or help me out to find an approach to solve…

user3056216
- 89
- 3
- 8
0
votes
1 answer
Run background agent on network connection availability change
I have noticed, that some wp8 apps (e-mail app etc.) updates their live tiles immediately when internet connection is available. Is there any way how to achieve same thing without push notifications using event…

JeffRaska
- 5
- 3
0
votes
1 answer
How do I utilise the OnUserAction method of the WalletAgent class using Windows Phone 8 Wallet?
I have created a Windows Phone 8 app that allows the adding of a PaymentInstrument to the wallet. I have also added a background agent and have managed to override the OnRefreshData method...
I can only find examples of the OnRefreshData method…

DazzledKid
- 396
- 1
- 6
- 20