Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Amit Jain

macrumors member
Original poster
Apr 9, 2007
45
0
Hi All,

While looking into the web fouond that only one application can be run at a time in iPhone. So is there any way or work around to run a non-GUI app in iPhone in Background.
This app will continuously query certain requests to iPhone regardign some internal iPhone events.
Thanks in advance.
Regards.
Amit
 

Amit Jain

macrumors member
Original poster
Apr 9, 2007
45
0
Try another forum where they discuss non-Apple-SDK development for jail-broken devices.

.

Thanks..
You mean to say that this cannot be done directly using apple SDK. Is something illegal or how can jail broking help in this kind of developement. can you help in technical terms.
I will also take your suggesstion and go to soem other forum.
Thnx again.
 

fishkorp

macrumors 68030
Apr 10, 2006
2,536
650
Ellicott City, MD
Per SDK guidlines your app cannot run in the background and not operate outside it's sandbox, other than by the means Apple provides. So you can access the camera, photos, and contacts, but that's about it. You can't have your app call another app or use any private frameworks. To achieve what you want you'd have to make an app for jailbroken phones, not something that would be available on the App Store.
 

firewood

macrumors G3
Jul 29, 2003
8,108
1,345
Silicon Valley
In more technical terms, the stock iPhone OS runs a daemon which will kill any background user process it finds. And any app which tries to start another process won't go in the App store, since this violates term-of-use of the SDK.

.
 

tusharbhatta

macrumors newbie
Jun 23, 2008
4
0
launching application in scheduled time

So can I write an application that will launch in a specific time and to some task ?

Push service may be not an way here as it requires network. Is applescript the solution ?

If you know something could u plz throw some pointer ?



Thanks
 

CommanderData

macrumors 6502
Dec 1, 2007
250
3
by
PHP:
robbieduncan

Did you mean to say that there is other way around ( not using sdk ) ?

That is exactly what he meant. BUT, you will need to jailbreak your phone, and any phone you want to run this on, and it will not be allowed in the app store. For the "how" you'll need to go find a jailbreak/unofficial iPhone programming forum...
 

piz

macrumors newbie
Dec 30, 2008
18
0
Hi All,

While looking into the web fouond that only one application can be run at a time in iPhone. So is there any way or work around to run a non-GUI app in iPhone in Background.
This app will continuously query certain requests to iPhone regardign some internal iPhone events.
Thanks in advance.
Regards.
Amit

If you like to run a non-GUI app in background, why instead not to use a Timer procedur that does the job?
 

Amit Jain

macrumors member
Original poster
Apr 9, 2007
45
0
If you like to run a non-GUI app in background, why instead not to use a Timer procedur that does the job?

Actually I am trying to make an app which always will run in the background of iPhone by timer how can we do that could you plz elaborate it will really help me.
 

drivefast

macrumors regular
Mar 13, 2008
128
0
amit: there is no way to do that using the sdk. it's a big no-no, at least for now, and you have to live with it. we would probably have had twice as many apps in the itunes store if this feature would be acceptable, and apple would have twice as many customers calling in and complaining about the battery life.

piz: if the application is terminated, the timer is destroyed. to keep the timer alive you would have to keep the application alive, you would have to keep the screen lit up and so on.
 

chka

macrumors newbie
Jan 8, 2009
2
0
amit: there is no way to do that using the sdk. it's a big no-no, at least for now, and you have to live with it. we would probably have had twice as many apps in the itunes store if this feature would be acceptable, and apple would have twice as many customers calling in and complaining about the battery life.

piz: if the application is terminated, the timer is destroyed. to keep the timer alive you would have to keep the application alive, you would have to keep the screen lit up and so on.

what about plaing audio? it continue to play when I run other applications... And Apple says you can write same power applycations with their SDK as they did themself! So they are lying? :)
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
what about plaing audio? it continue to play when I run other applications... And Apple says you can write same power applycations with their SDK as they did themself! So they are lying? :)

Apple apps like Mail and iPod can keep running in the background: yours can't. Whether you think that's Apple lying or not is up to you...
 

firewood

macrumors G3
Jul 29, 2003
8,108
1,345
Silicon Valley
And Apple says you can write same power applycations with their SDK as they did themself! So they are lying? :)

You might be able to use the SDK to write those application, but the OS won't run them, and the App store won't accept them.

e.g. the OS will kill any user background process, but not Apple's own Mail/iPod/etc. apps. (If you boot your own phone OS, of course, all bets are off... and not a topic for this forum...)

.
 

v3lvet

macrumors newbie
Jan 19, 2010
1
0
Amit/chka...
Look at some of the work done for jailborken apps like Backgrounder, aTimeTool, SBSettings, LockDown, iProtect, and other background running apps and contact those developers. They've done some very good work at managing battery life while running some small processes needed for their apps
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.