2010 Best Places to Work      Give us a call 888-856-2664
Get a Quote Today

Things a Chameleon Would Say

Web design

Explaining multitasking / backgrounding in iPhone iOS4
By: Hank McLaughlin 07/12/2010

iPhone OS4 or “iOS4″ as its called, recently introduced Multitasking to the apple device, this has a huge impact on how we use our apple devices. However because of the limitations and descriptions of these two features alot of users may be confused. This post is going to attmpt to be a Cliff notes for multitasking / backgrounding.

Definitions:

-Multitasking is the ability to run tasks while running other tasks (I’ll get to specifically what tasks in a moment)
-Backgrounding is when the phone “freezes” your app and unloads it from memory to be returned when you return to your app

Multitasking:
Apple allows you to have multitasking under a few specific circumstances. These circumstances are GPS apps, VOIP apps, and audio apps. The GPS profile will allow you access to GPS information and the network, the VOIP profile will allow you access to the network, and audio apps will allow you access to the network and audio output and input apis. When you exit your app depending on what profile you chose those services will continue to run in your app (AND ONLY THOSE SERVICES) doing anything other that collecting and manipulating the data received or sent from those sources will get your app booted out of memory by the OS.You can however manipulate UIViews but you obviusly wont see the changes untill you reopen the app.

BUT WAIT! what if I want to do something other than voip/GPS/audio?
Well using the VOIP profile to create a new AIM client is a sure way to get your app rejected by apple, however if you want to do other operations in the background there is a solution to that! Regular app services allow you to complete running a task in the background while running other apps. Basically regular app services allow you 10 minutes to do whatever you want (excluding processor intensive tasks like running openGL animations). This feature is great for apps like dropbox which will now let you finish uploading or downloading a file in the background while you perform other tasks.

Backgrounding:
Backgrounding is now included in every app you create for iOS4 what backgrounding does is essentially freeze
your app so that when you come back to it you are right where you left off. If you are three pages deep in an app and need to take a call when you return from your oh so important call you will be exactly where you left off in the app, no extra code required! If you don’t want this functionality you can opt out of it in your apps Info.plist file.

Both of these new features are great additions to the iPhone. Although there are some limitations, those limitations are there to keep battery usage down which for the average user is great. Another angle to this is app developers who create enterprise apps (apps that are not distributed via the app store but through a local server to company employes) can use these multitasking technologies however they want without fear of rejection from apple. So you can make that AIM client you always wanted. Just make sure you convince your boss its for business purposes.

Leave a Reply




Have a Question? Need a Quote?

Drop us a line or give us a call at 888-856-2664

Your Name (required)
Your Email (required)
Phone (required)
Your Message

What Our Clients Are Saying

John,
Can I just tell you how impressed I am with your team?! This whole process has been so great and working with you guys has made it SOOOO much easier! Thank you for all your hard work and for convincing us to choose Accella.

SO THRILLED!!

Alycia White
Kubota

Recent Posts

Apple iOS 5 Tech Talks - What Accella Took Away

I had the opportunity to attend Apple's iOS 5 Tech Talks on January 23rd in...

Building Tablet Apps for the Enterprise: The Time Has Come

Having a background in rugged mobile devices and seeing the advantages that...