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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:56:32+00:00 2026-06-04T06:56:32+00:00

I know that in iOS, background apps can only be running Finite-length tasks (10

  • 0

I know that in iOS, background apps can only be running

  • Finite-length tasks (10 min)
  • Location updates
  • VoIP
  • Audio

Is there a way for my application to avoid being terminated after being 10 min. in the background? I will not be submitting my app to the app store, so everything is allowed (private frameworks, using the gps even if I don’t need it) I know apple does not recommend this, but it is just for monitoring purposes. I need it to be running without a limit.

I explored several possibilities including the VoIP , but it only gives me 30 seconds every 10 minutes, which is not enough. I also read this post:
iPhone – Backgrounding to poll for events
in which JackPearse specified a way to “revive” the 10 minute finite-length task using the VoIP 30 second task. But I don’t want my task to start and end every 10 minutes, it must run continuosly.
I also tried his UPDATE2, but it’s not working for me.
I even tried intercepting the UIEvent with GSEvent.type 2012, which seemed to be the one ending my background task, but no luck. Strangely, my background task is never ended when I have Xcode opened and debugging, but when I don’t (test the simulator alone) it ends after 10 minutes.

  • 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-04T06:56:33+00:00Added an answer on June 4, 2026 at 6:56 am

    I found out how to keep my Application in the background for longer than 10 minutes by continuously playing a song in the background.
    On the AppDidFinishLauching:

    [[AVAudioSession sharedInstance] setActive:YES error:&error];
    [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:&error];
    NSURL *url = [NSURL fileURLWithPath:...]; //Song URL
    AVAudioPlayer *player = [[AVAudioPlayer alloc] initWithContentsOfURL:url error:&error];
    
    player.numberOfLoops = -1;
    [player play];
    

    In the AppDidEnterBackground you can perform a selector in background, which can last forever. The App will not be interrupted, you can check UIApplication backgroundtimeRemaining and see it never decreases.

    Of course, declare the app as a background audio App in the plist.

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

Sidebar

Related Questions

I know that from iOS 4.0 onwards we can execute our code in background.
On iOS, I know that we can evaluate a trust with SecTrustEvaluate(). To create
Background: I'm build a series of location-based apps that make heavy use of maps.
I know that in iOS, even if web developers stipulate user-scalable=no the user can
I know that in iOS, if the .sqlite is updated / read by SQL
I know that UIAppearance has been introduced in iOS 5, but is there any
I am new to iOS and Objective-C, I already know that in a class,
I know that it's a subject that can raise a lot of debate, but
I know that one can define an 'expected' exception in JUnit, doing: @Test(expect=MyException.class) public
A little background info; I'm making an iOS App that uses facebook integration. I

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.