Using Remote Web Server to Initialize iPhone App

Posted by Chris_K on Stack Overflow See other posts from Stack Overflow or by Chris_K
Published on 2010-04-27T17:01:04Z Indexed on 2010/04/27 17:03 UTC
Read the original article Hit count: 216

My iPhone app relies on a vendor's XML feed to provide data. But that feed is not locked down. The vendor could change the format of the XML at any time, although so far they've promised not to.

Since I might want to tell my app to use a different URL for its data source, I'd like to set up a single "Command Central" Web page, on my own server, to direct the app to the correct data source.

In other words, each time my app starts, in the background and unseen by the user, it would visit "http://www.myserver.com/iphoneapp_data_sources.xml" to retrieve the URL for retrieving data from my vendor. That way, if my vendor suddenly changes the exact URL or the XML feed that the app needs, I can update that Web page and ensure that all installations of the app are using the correct XML feed.

Does anyone have any advice or examples showing this kind of approach? It seems as if this must be a common problem, but so far I haven't found a well-established design pattern that fits it.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about design-patterns