开发者

How to add Daemon services and where i get best tutorial or best practices in iphone? [closed]

开发者 https://www.devze.com 2022-12-21 03:07 出处:网络
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If 开发者_StackOverflow社区you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

Thanks for helping me answering this question, I want to update the user's location and a timer frequently in my application in background. I have heard that the iPhone SDK only provides support for push notification services. Is there a way using the iPhone SDK to add Daemon services? Where can I find a good tutorial?


Background processes aren't available on the iPhone when using the official SDK.

The only way to do this is to jailbreak and use undocumented/private APIs, which is not recommended and will prevent your app from being allowed on the App Store.

However, if you just want to update the users location while the app is running, you can do that using NSTimer. It's unclear in your question whether you want the functionality to run while the app is not being used - in which case, my first statement stands.


I assume you want to do it without the app running. Then it's not possible.

0

精彩评论

暂无评论...
验证码 换一张
取 消