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?
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.
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.
Not possible without jailbreak - iphone sdk apps can only run while on screen.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With