开发者

iOS Periodic Sync with Web Service

开发者 https://www.devze.com 2023-03-24 00:05 出处:网络
Background: I have already written an Android application that periodically sy开发者_JS百科ncs a database with a web service (using the abstract threaded sync adapter in the framework).

Background: I have already written an Android application that periodically sy开发者_JS百科ncs a database with a web service (using the abstract threaded sync adapter in the framework).

Question: I've read lots of discussions on how an iPhone application can fetch data from a web service but I haven't found a good answer as to how an iPhone application can periodically fetch data from a web service.

I've read about NSTimer but I don't see how I can start this when the phone starts (i.e. before my app is started).

Yes, I know I should probably use Apple Push Notification but my app (and the associated web service) may well be deployed inside a Corporate firewall and have no access to the outside world) so I need to use "pull" mechanisms.

I'm a complete n00b when it comes to iOS development so please be gentle with me.

Can someone please point me in the right direction?

0

精彩评论

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