Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-22-2011, 09:53 PM   #1 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 87
MatuX is on a distinguished road
Default Multitasking question

Hey guys,

I don't understand something... As soon as I minimize my application it stops all my Threads.

I need to leave my background app checking every X amount of minutes for updates on a server.

How can I do this if code stops being executed when the application gets minimized? Isn't iOS supposed to be multitasking now?
MatuX is offline   Reply With Quote
Old 09-22-2011, 10:03 PM   #2 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 87
MatuX is on a distinguished road
Default

I just read about this a bit more... This is not multitasking, a task is something you do, iOS doesn't allow multiple things to do at the same time...?!

Why are they calling this multitasking? Isn't this false advertising and thus illegal?
MatuX is offline   Reply With Quote
Old 09-22-2011, 10:30 PM   #3 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

iOS grants the ability to apps to run code in the background for a couple reasons. One, you need location updates. Two, your app is an audio application and you want the audio to play in the background. Third, VOIP apps. Fourth, completing tasks that take a fixed amount of time. If your app doesn't not do any of these things, iOS does not let you execute code in the background. If your app does do these things, it needs to request background execution from iOS and if it grants it, you'll be allowed to execute code in the background.

More info here: Loading…
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.

New app - See screenshots and details at www.globaclock.com.

If you want to thank me, click the link. Every click counts. If you want to do more, buy my app. A link is available on my website. Thanks.
Domele is offline   Reply With Quote
Old 09-22-2011, 10:38 PM   #4 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 87
MatuX is on a distinguished road
Default

Yeah, I read that. I'm just appalled. Anyways, its my fault for trusting a marketing campaign and procrastinating the research for when I needed to implement this.
I can't believe though there isn't any class-action going on because of this. I don't care about the fact there is limited multitasking to 3 exceptions, I'm frustrated at the blatant lie. This is literally a case of false advertising.

Anyways, thanks for the reply.
MatuX is offline   Reply With Quote
Old 09-22-2011, 10:43 PM   #5 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

Why do you need to check a server for updates anyways?
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.

New app - See screenshots and details at www.globaclock.com.

If you want to thank me, click the link. Every click counts. If you want to do more, buy my app. A link is available on my website. Thanks.
Domele is offline   Reply With Quote
Old 09-22-2011, 10:57 PM   #6 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 87
MatuX is on a distinguished road
Default

It's an Enterprise/non-public app that has a very specific requirement for that organization. I'm going for the APNS route, I was hoping to save a few cycles by doing this directly on the app.

I understand, however, that APNS should always be the route to go for delivering updates and whatnot to your iOS device, as the app won't need to go through any expensive (or not) iteration thus saving battery and money for those with non-US limited data plans.
MatuX is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 391
14 members and 377 guests
7twenty7, eski, EvilElf, HemiMG, iOS.Lover, jarv, n00b, pbart, Pudding, sacha1996, Sami Gh, UMAD, VinceYuan, yuncarl28
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,672
Threads: 94,121
Posts: 402,905
Top Poster: BrianSlick (7,990)
Welcome to our newest member, yuncarl28
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:16 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0