i want to develop an app to communicate with a webserver. I have an webserver with data's which i want to load on iOS devices.
My aim is:
- I start the app
- Login to the Webserver (or use offline if i have connected to the webserver before)
- Handle my data, read my news and so on, change any data(Online and Offline)
- Check while working with the app, if any data's changed and 'snyc' or 'upload' the changes to the webserver
*The Data's are only text, no images, no files at the moment*
Now my question is, which is the best way for my app?
Which API should i use for my webserver to communicate with the iOS device?
- I have read a lot of XML and JSON and may JSON would be the fastest and easiest to use it on a webserver and on iOS.
How can i use the App offline and parse it on changes? And if anything changes, how can i sync it?
How should i solve the login, how to authenticate? i think this is a very important point of security.
To work only with Request would not be efficient, i think, because there are a lot of data's.
Thanks for any recommandations,
brush51