Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6220805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:01:24+00:00 2026-05-24T08:01:24+00:00

Wat happen when we start a request and we enter the background before the

  • 0

Wat happen when we start a request and we enter the background before the request is finished ? Do we have to cancel it ? What is the right way to do so ?

PS : i don’t want my download to continue when the user enter background.

Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T08:01:25+00:00Added an answer on May 24, 2026 at 8:01 am

    From the documentation you will see that to continue a request in the background, you need to specifically request that action using;

    [request setShouldContinueWhenAppEntersBackground:YES];
    

    The corollary is that if you don’t specifically enable it, the download will be cancelled. You should not need to take specific action to do so.

    EDIT: Looking at the source, it looks like the download won’t explicitly be cancelled by ASIHTTPRequest, but will fail to complete because the operating system is likely to do so for you. If you really want to be sure that it cancelled, perhaps because something nasty happens if you don’t, you can always use;

    [request cancel];
    

    when you go to the background.

    Personally I prefer to be in control of what is going on and would explicitly cancel things I wasn’t expecting to finish due to going into the background. It’s cleaner and safer because you know 100% what is going on.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a number of textfields . i want to display datepicker on the
wat i want is to show an image in image view and fade the
I want to set a minimum size for my xulrunner applications' main window.I have
I have the following class [XmlRoot(ElementName= webSites)] //No capital w at the beginning public
wat i am trying to is, each time user touches screen, i am adding
The 'Wat' talk for CodeMash 2012 basically points out a few bizarre quirks with
package woot.wat.wen; import android.app.Activity; import android.os.Bundle; import android.text.Layout; import android.util.Log; import android.view.KeyEvent; import android.view.View;
I'm trying to get the following html out of Zend_Form <div class=group wat-cf> <div
I have been thinking of creating a website with asp.net. Is it possible to
I have simple link list and when you hover over it it appends a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.