0

I've used background transfer service (BTS) API for Windows Phone in two apps and experienced very bad problems. It became one of the main source of bug in the two apps as for some reasons, download are often refusing to start, whatever I set in the flags (Connected to wifi, not connected, connected to a power outlet, etc.), and it was random from a user to another. This and bad response from the servers.

Is there a more customized way to achieve it? Which threads or loop remains alive in my app when I'm navigating to the external:// world? I should probably check with counters.

My main question remains: appart from the BTS, is there something to allow a 3-4 megs file to upload even if I navigate out from my app to play an mp3 from an external:// app?

Léon Pelletier
  • 2,701
  • 2
  • 40
  • 67
  • How big are the downloads/uploads? Also, what do you mean by "refusing to start" - what is the status of the `BackgroundTransferRequest` objects? – Richard Szalay Jun 25 '13 at 03:20

1 Answers1

0

Once you exit your app, you are pretty much shut down. You can masquerade as a location tracking background agent to remain in the background when you get deactivated, though you'll suck battery and I believe there can only be one of these active at a time. Generally, highly not recommended (and you'll probably fail certification).

A better way to do this if BTS is not to your liking is to use a ResourceIntensiveTask. This will only be triggered when the user is plugged in and has WiFi but will allow you to run whatever you want for as long as the conditions are met (for example, at night) which should be plenty of time to upload a 3-4 MB file.

Oren
  • 3,273
  • 2
  • 19
  • 15
  • Ok! But I'm under the impression that the phone totally fails to manage flags like "Do this even if you're not plugged" as it has been my problem in my last apps. On test, it was "Yay!" it works! On some other phone, downloads were not fireing. And it is an evidence that it was caused by some flags, since a normal download usually starts or crashes, and these one were just pending. – Léon Pelletier Jun 25 '13 at 04:40