BackgroundUploader and "Suspend+Shutdown"


  • I have a question concerning BackgroundUploader and what happens on a suspend followed by shutdown.

    When I only suspend the app, the normal continuation to `startAsync` will be called after resume. But when the app is shut down, starting a new instance and calling `BackgroundUploader.getCurrentUploadsAsync` will never return any uploads.

    I tried this with by starting to upload a very big file, hit the "Suspend and Shutdown" button in Visual Studio and immediately starting the app and invoking this function, but it never returns any current uploads.

    Of course I can understand the reasoning that users probably don't want to have things running in the background when apps have been shut down but I want to understand what the use case for `getCurrentUploadsAsync` actually is.

    Friday, May 10, 2013 1:52 PM

All replies

  • hi,


    How does this feature adapt to network status changes or unexpected shutdowns?

    The Background Transfer feature maintains a consistent experience for each transfer operation when network status changes occur by intelligently leveraging connectivity and carrier data-plan status information provided by the  Connectivity feature. To define  behavior for different network scenarios, an app sets a cost policy for each operation using values defined by BackgroundTransferCostPolicy

    For example, the cost policy defined  for an operation can indicate that the operation should be paused automatically when the device is using a metered network. The transfer is then automatically resumed (or restarted)  when a connection to an "unrestricted" network has been established. For more information on how networks are defined by cost, see NetworkCostType.

    Note  While the Background Transfer feature has its own mechanisms for handling network status changes, there are other general connectivity considerations for network-connected Windows Store apps. Read Leveraging available network connection information for additional info.

    Wednesday, May 15, 2013 8:12 AM
  • In this case I'm more curious about application shutdown than network shutdown.
    Wednesday, May 15, 2013 8:20 AM