Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is a good question.</p> <p>According to the Apple documentation about Multi Tasking:</p> <blockquote> <p>In addition to the preceding keys, iOS provides two other ways to do work in the background:</p> <p><strong>Task completion</strong> — applications can ask the system for extra time to complete a given task.<br/> <strong>Local notifications</strong> — applications can schedule local notifications to be delivered at a predetermined time.</p> </blockquote> <p>If your task is not a long and continuous task, such as a VOIP service, GPS service or Audio service, you can declare it as "finite length task" and you can complete this task in the background. Remember that the MU is available only from iOS 4.0 and only for 3GS and 4 devices. You should also manage those tasks for other devices that don't support the MU.</p> <p>Always according to the official documentation, you can do that:</p> <blockquote> <p>You can use task completion to ensure that important but potentially long-running operations do not end abruptly when the user leaves the application. <strong>For example, you might use this technique to save user data to disk or finish downloading an important file from a network server.</strong> There are a couple of design patterns you can use to initiate such tasks:</p> <ul> <li>Wrap any long-running critical tasks with <code>-[UIApplication beginBackgroundTaskWithExpirationHandler:]</code> and <code>-[UIApplication endBackgroundTask:]</code> calls. This protects those tasks in situations where your application is suddenly moved to the background.</li> <li>Wait for your application delegate’s <code>applicationDidEnterBackground:</code> method to be called and start one or more tasks then.</li> </ul> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload