1

My application is using the Auto-upload feature which allows using a Resource Intensive Task to upload pictures.

If I use ScheduledActionService.LaunchForTest then it works fine, but when I erase this line of code, the resource intensive task never executes (and I see that the phone meets all the requirements).

The app is in release mode btw.

What could happen? It will be executed in several hours after or it will never be executed? Is there any bug?

programmer23
  • 533
  • 4
  • 15

1 Answers1

0

You mention that the task stops launching after you remove ScheduledActionService.LaunchForTest...

Did you just remove that line, or did you replace it with ScheduledActionService.Add? You still have to add your task to the scheduler.

EDIT

I'd never encountered this personally, but per another SO question (Any Tips for getting Windows Phone 8 Resource Intensive Task to Run?), there is a known bug in the pre-GDR2 versions of Windows Phone 8 in which Resource-Intensive Tasks simply don't run in Release builds. Ouch.

So if your device hasn't had the GDR2 update... not much to be done, it seems!

Community
  • 1
  • 1
Ben
  • 6,023
  • 1
  • 25
  • 40
  • No no, what I say is that if I put the LaunchForTest, the Resource Intensive Task works, but if I REMOVE the LaunchForTest it doesn't seem to work, I wait a lot of time but this task doesn't run. – programmer23 Jan 22 '14 at 19:40
  • Right, I hear that. Now that `LaunchForTest` is gone, how are you informing the OS that there's a task to run? – Ben Jan 22 '14 at 19:43
  • Well, I call ScheduledActionService.Add, what else should I do? BTW. If an App use Resource Intensive Task (not Scheduled), when you go to config and see the "background tasks" option, the name of the app appears there? – programmer23 Jan 22 '14 at 19:49
  • That's dependent on your mobile carrier, unfortunately. If they haven't yet rolled it out, consider it unlikely - it's been out for some time. You may already have it - check your phone's system info. I don't know precisely what to look for, but google should help. – Ben Jan 22 '14 at 23:54
  • I think that the fault is in my manifest. Supossing that the project is called "My Project" and the name of the Task Agent is "My Agent", how should I fill the manifest with this? – programmer23 Jan 23 '14 at 09:14