how to run my application in background in iphone?

一个人想着一个人 提交于 2019-11-27 14:26:40

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.

You could contact the people who made this

http://appadvice.com/appnn/2008/10/run-iphone-apps-in-the-background/

It only works on jail broke phones, another way it to use push notification from our servers for timed tasks. Why dont you use this, to wake up the app get the GPS then send it back to sleep. Better for batteries too.

May be the link will Help bcz u might have to implement the code in Appdelegate in app run in background method .. Also consult the developer.apple.com site for application class Here is link for runing app in background http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/BackgroundExecution/BackgroundExecution.html

mreyesc

I think you are in one of cases you can do background process, take a look in this discusion

Run app for more than 10 minutes in background

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!