DaViDa
DaViDa

Reputation: 641

Saving data online for IOS

I'm new to IOS (Xcode) programming and have been searching information about the online storage of data. So far I came across Core Data and SQLLite. However every search results into a storage file on the device itself. I want to make an app that stores routes with the Google Maps API. Because eventually there will be a lot of routes I think it is going to take a lot of storage, even though it is saved as url. I am using: https://www.youtube.com/watch?v=AdV7bCWuDYg&feature=youtube_gdata

Within those routes people can post messages on the route it's wall, so that data has to be saved too.

I am used to websites using phpmyadmin with tables for example or Java and postgressql/mysql. Is there anything like that for IOS and if so what is the best approach for this? Core Data?

Upvotes: 4

Views: 1802

Answers (1)

Saqib Omer
Saqib Omer

Reputation: 5477

First you need to learn about restful web services. If you are familiar with server side scripting languages like php, then you can create web service for each operation. Here is a good tutorial for creating rest api.

Lets say you want to save chat data from iOS app to server. Here is what will happen.

Client Side (iOS app): Your app will make a request (hit a url ) e.g abc.com/savechat. With this request, your app will "POST" data along with request. e.g sender name, receiver name, message body and time etc. Then server can send response e.g. a success message back to client.

Server Side: Server will perform data operations like storing data and send a response back to client.

For processing web services (JSON) on app side either use libraries like Alamofire for Swift and AFNetworking for Objective C.

Upvotes: 1

Related Questions