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

  • Home
  • SEARCH
  • 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 8104101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:44:21+00:00 2026-06-05T23:44:21+00:00

In iOS, how would I instruct the OS to keep my app running even

  • 0

In iOS, how would I instruct the OS to keep my app running even if it is no longer in the foreground?

  • Skype
  • Viber
  • Empatica
  • Zenly

And many more apps does this.

  • 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-05T23:44:22+00:00Added an answer on June 5, 2026 at 11:44 pm

    Basically, there is no such thing as a service type app or functionality in iOS.
    Even the “background” apps (UIBackgroundMode) cannot run entirely free and without restrictions like a service or daemon etc. on other OSs can.

    Here’s the situation regarding background execution and notifications and timers etc.

    1) An app cannot execute in the background unless:

    a) it requests extra time from the OS to do so. This is done using beginBackgroundTaskWithExpirationHandler. It is not specified (intentionally) by Apple how long this extra time is, however in practice it is around 10 minutes.

    b) an app has a background mode, the modes are VoIP, audio, location, newsstand. Even if it has one of these types an app cannot execute without restrictions. The rest of this discussion assumes the app does not have a background mode. If you try to use one of these background modes to enable your app to be capable of running in the background but your app does not make legitimate use of the specific functionality then your app will be rejected upon app store submission (i.e. to have a UIBackgroundMode it MUST be either: a VoIP app, NEED to have continual location updates, the ability to play audio in the background continuously is a fundamental feature, or be a newsstand app).

    2) When an app is suspended it cannot do ANYTHING to rouse itself directly. It cannot previously have scheduled an NSTimer, it cannot make use of something like performSelector:afterDelay. etc.

    The ONLY way the app can become active again is if the USER does something to make it active. The user can do this from via of the following:

    a) Launch the app directly from its icon

    b) Launch the app in response to a local notification that was previously scheduled by the app while it was active.

    c) Launch the app in response to a remote notification sent by a server.

    d) A few others: such as URL launching if the app is registered to deal with launching via a URL; or if it’s registered to be capable of dealing with a certain type of content.

    If an app is in the foreground when a local/remote notification fires then the app receives it directly.

    If the app is not currently in the foreground when a local/remote notification fires then the app DOES NOT receive it. There is no code that is executed when the notification fires!

    Only IF the user selects the notification will the app become active and it can execute.

    Note that the user can disable notifications, either for the entire device or just for a specific application, in which case the user will never see them. If the device is turned off when a notification is due to fire then it is lost.

    UPDATE FOR IOS 7

    1) there are some new background modes such as background fetch (you still can’t be roused by the OS in a deterministic fashion however)

    2) there’s now a background push notification

    3) beginBackgroundTaskWithExpirationHandler time has reduced from 10 minutes to about 3.

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

Sidebar

Related Questions

I would like to build a settings interface for the iOS app. Note -
I would like to add a custom alert sound to my iOS app. I
I would like to create a small test app for iOS in which I
Now that iOS 4 is no longer NDA, I would like to know what
I'm looking to work on an iOS app that would need to send/receive data
I am trying to make an iOS app which would involve 5 or so
I am developing an app on the iOS platform which would involve a lot
In my iOS app I would like that user can download some jpg file
I would like to make a set of help pages for an iOS app,
I am developing an iOS app and would like to obtain a list instance

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.