Questions tagged [background-agents]

Background agents are a facility in Windows Phone 7/8 API that lets you run some processing when your application is not in the foreground.

Background agents are a facility in Windows Phone 7/8 that lets you run code when your application is not in the foreground.

http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202942(v=vs.105).aspx

92 questions
0
votes
1 answer

google server in backgroind trask c#

I am working on a windows phone 8.1 project that pulls data from google server (Blogger, and Gmail). I want to have a background agent the checks the server for new data and notifies user with a push notification. I've created a Windows Runtime…
0
votes
1 answer

Server Authentication in Windows Run Time Component for background agent

I am working on a windows phone project that pulls data from gmail server using gmail api and downloads all the attachments with the specific format, everything works (server authentication, receiving data, ... ) well when I have all the code in the…
apramc
  • 1,346
  • 1
  • 15
  • 30
0
votes
0 answers

Impossible to add background agents as reference on Windows Phone Silverlight 8.1

My app is using Windows phone silverlight 8.1 and visual studio express 2013. I need a scheduled task for my app, so I added a Schedule Task project as here: https://msdn.microsoft.com/en-us/library/windows/apps/hh202941%28v=vs.105%29.aspx I…
0
votes
0 answers

single background agent for multiple apps(signed with the same certificate) in windows phone 8?

I am a beginner to Windows Phone 8 development. My current project involves a background agent retrieving text data from online server on regular intervals and pushing them to several apps at once. All these apps will be signed and wrapped with the…
gaurav107
  • 19
  • 1
0
votes
1 answer

toast notification throwing unhandlend exception in background agent wp8

I have a background agent on my app that works well until I send a toast notification, it throws an unhandled exception with the exception object message being: "Object reference not set to an instance of an object." The OnInvoke method is async as…
0
votes
1 answer

Universal volume control navigation WP8

How do we control the navigation to a page from UVC? I want it to navigate to the "Now playing page" in the app when tapped, both when the app is closed and app is in the background. "BackgroundAudioPlayer" is used for playing the songs.
Bells
  • 1,465
  • 1
  • 19
  • 30
0
votes
2 answers

Windows phone 8.1 deployment error when trying to use background task with audio and device use trigger

I'm trying to create a background task that uses the accelerometer to play with the music in the background (pause, play, etc). In the Package.appxmanifest I have a backgroundtask, that reads the accelerometer and in the Package.appxmanifest it has…
Peter
  • 1,047
  • 2
  • 18
  • 32
0
votes
1 answer

Separate background agent for a Windows Phone app to update live tile + lock screen independently

Is this possible? Or are Windows Phone 8 apps restricted to only a single background agent? I currently have a background agent updating the live tile, and am pushing the memory constraints applicable to a Periodic Task as it is. If/when I add lock…
0
votes
1 answer

Windows Phone Background Agents - Custom Control causing Unknown parser error: Scanner 2147500037

I am attempting to use a custom control for a live tile in my background agent. I have my live tiles successfully generating with user controls, but I now want to reference a custom control in my user control Xaml. At design time everything looks…
0
votes
1 answer

Restoring a live tile to a static tile automatically after I remove its background agent

My app's primary tile has live tile capabilities. If however I turn off the live tile functionality, when I return to the Start screen, my app's primary tile is still showing the last state of the live tile. I was wondering what I need to do in…
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…
0
votes
1 answer

WP8 - How can I make the background agent execution to wait before all ImageOpened events are fired to update live tile with custom images?

How can I make the background agent execution to wait before all ImageOpened() events are fired (3 in this case) in order to update secondary live tile with custom images? Edit 1: In the OnInvoke() method of the ScheduledAgent I am calling my own…
0
votes
1 answer

Background Agent ParseUser.CurrentUser not cached/accessible Windows Phone

I've implemented a (for now) simple Background Agent in my Windows Phone 8 app. In the background agent, a WebRequest is made to update a stock list stored in XML in the IsolatedStorage. In other parts of the app, during debugging, I can see the…
Carlos
  • 105
  • 1
  • 9
0
votes
2 answers

How Can I Reduce The Default Time of The Scheduled Interval of the Background Agent in Windows Phone 8?

I have an issue with the periodic task of the background agent in windows phone 8. I want to reduce the default Time(30 Mins) of the Scheduled Interval. How can i make that ?!! Thanks in Advance.
0
votes
2 answers

What could prevent a ScheduledTaskAgent from firing OnInvoke more than once?

I have set up a ScheduledTaskAgent with a LaunchForTest (which I know is being called). When I launch the main app, it seems to successfully add the task and OnInvoke runs to completion (calls NotifyComplete), but never seems to run again. I've…
user3380909
  • 113
  • 1
  • 5