Hard code or remote database?

I am developing a real estate app for my customer. I am going to pull some special listings from their website. My question is this. In the app design do I hard code the url links or do I need to pull them remotely from a database such as these. A rss reader from a blog, A database, or can I use the icloud feature in Xcode. I have never used the icloud feature before in any of my apps but as I have read, I think it is for the user to store their personal data inside the app. Any suggestions? What I am trying to prevent is not having to resubmit the app to the App Store to replace dead links. Looking for easy way to remotely download a link us it as a variable for a url link incase the link get changed my website designer. Then I can just change my link that is getting downloaded. Thanks

Accepted Reply

Sorry if I missed it - what platform(s) are you building for?


What will the app do that is different from the website?


Will the app include In App Purchases, user info gathering, multi-platform use/sharing, notifications?


See:

JSON: https://developer.apple.com/swift/blog/?id=37

RSS Reader: (dated) ttp://www.appcoda.com/building-rss-reader-using-uisplitviewcontroller-uipopoverviewcontroller

iCloud: https://developer.apple.com/icloud/

ASRGs: https://developer.apple.com/app-store/review/guidelines

Replies

As you've noted, the "easy way", which is also the most flexible, is to pull the links from a server. I'd just put the links and whatever related metadata you need into a static JSON file and serve it up over HTTPS. Doesn't necessarily need to be a "database". Depending on your relationship with the customer (are they or you going to update it, do you have access to their web server, etc.) you could just host it on their server, or you could use your own. VPSes are dirt cheap.


Keep in mind that the app should fail gracefully if there's a problem contacting your server. So you'll probably want to cache the most recent successful download of the configuration file and fall back to that if necessary.

I download messages and other things from a Google site (you could place your web addresses there). They are free and easy to use


h ttps://sites.google.com/site/YourSelectionHere

I know about using xmlparser with a RSS feed. I know very little about JSON. Could you point me to a could place to read about doing this or give an example. Thanks

This should be a good beginning:

h ttps://www.raywenderlich.com/172145/encoding-decoding-and-serialization-in-swift-4

Sorry if I missed it - what platform(s) are you building for?


What will the app do that is different from the website?


Will the app include In App Purchases, user info gathering, multi-platform use/sharing, notifications?


See:

JSON: https://developer.apple.com/swift/blog/?id=37

RSS Reader: (dated) ttp://www.appcoda.com/building-rss-reader-using-uisplitviewcontroller-uipopoverviewcontroller

iCloud: https://developer.apple.com/icloud/

ASRGs: https://developer.apple.com/app-store/review/guidelines

Thanks will check it out.

Thanks will look into these.