Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to run my application in background in iphone?

I want to run my timer in background even when app is not running. Because I want to get gps cordinate of the user after some time interval. What is the method to do this?

like image 597
Rahul Vyas Avatar asked Oct 10 '09 09:10

Rahul Vyas


3 Answers

I don't think this is allowed in the iPhone programming paradigm. The operating system is capable of running background tasks but ordinary iPhone apps are not permitted to launch anything like this.

like image 174
Artelius Avatar answered Nov 13 '22 06:11

Artelius


The Apple Push Notification service is not, in fact, only available to a few developers. It is currently in wide-spread use.

Take a look at this:

http://developer.apple.com/IPhone/library/documentation/UIKit/Reference/UIApplication_Class/Reference/Reference.html

The "Registering for remote notifications" section specifies how to register for push notifications. The other end is set up in the iPhone developer portal.

like image 32
Ed Marty Avatar answered Nov 13 '22 05:11

Ed Marty


Not possible without jailbreak - iphone sdk apps can only run while on screen.

like image 1
Mobs Avatar answered Nov 13 '22 06:11

Mobs