Multitasking (iOS): Difference between revisions

Content deleted Content added
Kenanwang (talk | contribs)
Running in the background: Changed the title of this subsection
Kenanwang (talk | contribs)
Background APIs: added references.
Line 10:
[[File:IOS_Multitasking_Bar.png|right|thumb|
The multitasking bar on iOS 4]]
<nowiki> </nowiki>multitask.<ref>http://www.imore.com/ios-4-walkthrough</ref> Starting with iOS 4, on third-generation and newer iOS devices, multitasking is supported through seven background APIs<ref>http://www.imore.com/apple-announces-multitasking-iphone-40</ref>:
# Background audio – application continues to run in the background as long as it is playing audio or video content<ref>https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html#//apple_ref/doc/uid/TP40007072-CH4-SW20</ref>
# Voice over IP – application is suspended when a phone call is not in progressprogress<ref name="AppleDev1" />
# Background ___location – application is notified of ___location changes<ref name="AppleDev1" />
# [[Push notifications]]
# Local notifications – application schedules local notifications to be delivered at a predetermined time<ref name="AppleDev1" />
# Task completion – application asks the system for extra time to complete a given task<ref name="AppleDev1" />
# Fast app switching – application does not execute any code and may be removed from memory at any time<ref name="AppleDev1" />
In iOS 5, three new background APIs were introduced:
# Newsstand – application can download content in the background to be ready for the user<ref name="AppleDev1" />
# External Accessory – application communicates with an external accessory and shares data at regular intervals<ref name="AppleDev1" />
# Bluetooth Accessory – application communicates with a bluetooth accessory and shares data at regular intervals<ref name="AppleDev1" />
In iOS 7, Apple introduced a new multitasking feature, providing all apps with the ability to perform background updates. This feature prefers to update the user's most frequently used apps and prefers to use WiFi networks over a cellular network, without markedly reducing the device's battery life.