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 8491399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:24:43+00:00 2026-06-10T22:24:43+00:00

Team, i’m developing an iOS application. My requirement is to query for specific news

  • 0

Team,

i’m developing an iOS application.
My requirement is to query for specific news service(REST API) in regular time interval.I wanted query the service twice for a day and update my sqllite db, even the applciation is in background state. My UI will be updated with data fetched from sqllite db, while the application is in foreground.

My question are,

  1. Is it possible to run NSTimer in background continuously? if yes, is
    there any maximum time limit for timer to run in background (say 10
    mins or 60 mins)?

  2. Is it possible to send request to download a file using
    NSUrlConnection and save the file to documents directory, when the
    application is in background ?

Your suggestions will be much helpful for my project design.
Thanks in advance.

  • 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-06-10T22:24:44+00:00Added an answer on June 10, 2026 at 10:24 pm

    Answering my own question, so that it will be helpful for others.

    Ques 1: Is it possible to run NSTimer in background continuously?

    Ans: Nstimer will not run while the application in background state. So there is no point of maximum allowed timer value in background. If the application enters into background while there is an ongoing process, [UIApplication beginBackgroundTaskWithExpirationHandler:] can be used to complete the ongoing process. The maximum time allowed by the OS with this handler is 10mins.

    Ques 2: Is it possible to send request to download a file using NSUrlConnection and save the file to documents directory, when the application is in background ?

    Ans:
    Below given information is from Apple documentation. Detail info is found here

    In iOS, only specific app types are allowed to run in the background:

    • Apps that play audible content to the user while in the background,such as a music player app
    • Apps that keep users informed of their location at all times, such as a navigation app
    • Apps that supportVoice over Internet Protocol (VoIP)
    • Newsstand apps that need to download and process new content
    • Apps that receive regular updates from external accessories

    Info about running background process using VOiP type application can be found here

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

Sidebar

Related Questions

My team and I are currently developing an application for both Android and iOS
My team is developing a new service oriented product with a web front-end. In
My team is beginning implementation of a greenfield application, with a requirement for multi-tenancy.
Team, I have an ASP.NET MVC application that I'm deploying. When I deploy it
Team, I have build a VB.Net windows application which does uploads data into database
My team and I have been engaged in building several cross-platform (BlackBerry, Android, iOS)
Team: I need to invoke a WF activity (XAML) from a WF service (XAMLX)
Team: I need some help with some regular expressions. The goal is to be
Team I'm creating an iphone application using Sencha Touch. I have registration form ,
My team and I are developing a program for a bank and need to

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.