I'm currently developing an iOS app and it needs to be able to access an online database and retrieve/ update information on it. I can do this easily with webpages through PHP and MySQL but I can't find the best practice for doing a similar thing with iOS.
Any tips, websites etc would be great.
Thanks in advance!
Related
Hello!
First of all I would like to let you know that I am a fairly new to programming (mostly Ruby on Rails). I have been studying by myself for around 6 months. I recently got a first project - a voting app.
I have created the layout to the app - using HTML, CSS, bootstrap, a little JS and JQuery.
Now I need to bring the app to life - so, make the tables alive. I have heard that it shouldn't be hard to do in Rails API (using REST), which I have created with the help of some tutorials (like this guy). The webapp will be used only locally, on a device.
So, my questions is:
How to connect Rails API to the layout and make it "talk" to eachother?
I know I should use JSON to communicate the front end with server, but I am not sure where to start.
Thanks in advance!
If you're trying to make a website you should follow this tutorial. APIs are more for sharing your sites data or functionality with other sites, or for serving data to mobile apps/frontend frameworks like AngularJS.
I am working on a new app, until now i used firebase as database but this app will save much complex data and i think that firebase and noSQL at all is not the right solution in here.
I ran into this Pod: https://github.com/IBM-Swift/Swift-Kuery that helps to use PostgreSQL on swift.
I also ran into ElephantSQL that helps you to load PostgreSQL on an AWS server (if i got it right), but i found it pretty hard to understand everything about it and I'm not sure that this is the best solution for me.
I would love to get some help from somebody that know more on SQL and SWIFT and could help me to choose right services to use it.
Thank you very much.
My suggestion to you is to avoid doing the SQL right from the mobile App unless this is extremely needed (till now I haven't found a reason to do it).
It's a better design to expose your data from your backend server (AWS, Azure, Hosted, etc) with a Webservice/API. For this you can use any backend language. Depending on your needs you could use vapor which is a web framework based on swift so that you wouldn't have to learn another language.
My question might be too easy. But i come from web development background and just started creating iOS app by learning from here and there. I have made 2 prototypes, but the second one need backend, cms.
From my prev experience i used php, mysql, html, css. I custom made the cms to organize my content and all user data, etc would be stored into database and can be maintained from the cms.
I use swift, but i seem to miss something important. in ios area what are the tools to develop the db (not local storage, coredata, and such) and maintain that; like what i used to use in web dev area? i dont even know how to ask the right question, but i really hope you guys would understand
can you guys give me direction? a link to basic knowledge of this will be fine
thanks
I think usually it will be database on a server and you will send requests and get answers in JSON format. You will have to parse them and use in your app.
Not looking for too many details here, I'm just wondering how to code an iOS app that accesses/modifies the same data that is used in a web app.
Can this be done using CoreData?
Can this be done with a MySQL db?
Can this be done using MongoDB?
Do have any links where I could go to learn more about this?
I am looking to track analytics for our web app. User accounts sit behind a paywall. Some basic questions I want to answer are time on site, most used sections of the app, where they are running in to problems...click tracking would be nice.
Is there a product out there that can track this data for my application? It is built on Ruby on Rails.
Searched G, Stackoverflow, looked everywhere for a good solution. Would love to hear some insight. Thanks!
We use Piwik, it's in PHP and simple to setup. If PHP is an option for you, it's the way to go.