iPhone application database: MySQL & SQLite - iphone

Hi I am a student with little knowledge about iPhone application and its database.
However, I am tasked to develop an iPhone application for a company. This application must require users to do registering as member and reflecting their member points.
Currently, the company is using MySQL as their database for their current ongoing. Whereas, after the implementation of the iPhone application which database should I use?
I am aware that iPhone only supports SQLite but how can I fetch the data from their current MySQL and make a linkage so it would be centralized and not having 2 individual database?

It sounds like your bosses threw you into very deep water without knowing how to swim, first.
There are a number of ways to answer your question, and I found a few related questions on various sites that might help you.
How to access remote MySql database from iPhone App
Connecting to a remote MySQL Database
Access mysql remote database from iPhone
You might want to start with just writing a small, non-database-using iPhone app to start with and then once you get the hang of it, then reach out into wild world of talking to remote databases.
hope this helps!

Related

Can I pre-cache data to work offline in mobile app using AppSync?

I am developing an Android and iOS app that could be used in areas that have a very poor or no data connection. It is a requirement for the app to be pre-loaded with all of the data so it will work even if the app never communicated with the server, but it also needs to be able to update and sync when a connection is made. Is it possible to manually populate the AppSync (Apollo) cache database with data on launch and query and mutate it later? The app also contains several search and filter queries. Our backend API is currently using GraphQL.
I have seen this question, Is it possible to build offline-first mobile apps using AWS AppSync?, but it is a little different that what I'm asking.
The recommendation would be to hydrate (read: pre-load with data) a local SQLite database after install. SQLite is what the 'local cache' uses to persist data on the device.
Refer to this github issue for a code example of how to do this:
https://github.com/awslabs/aws-mobile-appsync-sdk-js/issues/160

Accessing Database using node.js in iOS

I want to create such a application in which my iPhone will have the UI for entering the data for the employees. After clicking on the post button data should be saved on the sqlite database and I also want to retrieve the data on button click from the database. I want to use node.js for communicating between my iOS app and the database. Since I have never used node.js before, please give me some links where I can study the sample applications.
I am not an iOS developer but I would make a REST service in Node.js that can sit between your Iphone app and your database. You most likely are going to want to have some form of authentication on the service.
Also does it have to be sqlite? There are databases that can understand HTTP. If you use CouchDB (there are others) you can let your app talk directly to your database. That means you can leave out Node.js completely. You can go even further and use a service that will provide a back-end for you. Something like parse.com (there are others) will do this for you.

Need iOS Database Cloud Design Tips

I have an app that uses an SQLite database. With the advent of iCloud on the rise I'm trying to figure out a good architecture for syncing data between devices. So lets say my app runs on an iPhone, an iPad, and a Mac. How can I keep data in my DB up-to-date on all devices?
My first thought was, I can put the database in the cloud and send transactions. But the device may not always been online and the users need their content at anytime, so that wont work. My other thought was to continue using the local db, and then when a connection is made, to send the cached data to the central db. The problem is I have no ideal where to even begin on something like that. How would I know which data has been sent and not sent, which data to actually send when a connection is made, etc.
So this is my question (we don't have to get into iCloud specifics), using an SQLite database and iCloud (or any storage medium), how can I sync data between multiple devices, but still have the most recent data stored locally on the device?
You might want to checkout Couchbase Mobile. This would help with the synchronization you are looking for.
If you have a significant investment into CoreData, then you may want to look at writing your own NSIncrementalStore to support writing data to and from a key value store.
iCloud is only going to be a good solution if your data is sandboxed to a specific user. If you have multiple users that want to view the same data then it won't work.

objective-c iphone programming : remote connection database iphone

i simply want to make an iphone application with a remote database. For exemple facebook iphone application, they have all access to a huge database. Are they using Mysql ? Because i heard that mysql is not secure through iphone and app store may reject it. Can someone help me figure out whats the best to use.
What all those apps are probably using is a RESTful web service endpoint that is in turn backed by a large database. There are a lot of libraries for creating web services regarding of what application stack you're using.
If you're using MySQL, you'd write a Python/Ruby/Whatever-you-choose backend component which actually connects to a MySQL instance, then reformat the results as a web-service endpoint. SOAP can work if need be, or (in my opinion) a better option would be to write a simple JSON service that your iPhone app can parse. There are lots of JSON/WS iOS libraries that are a google query away.
Apple will not be bothered what database you are use remotely (will be accessed through defined API's).

Importance of SQLite in iPhone Application Development

I am in iPhone Application Development since last few months only..
So, I have working with some applications, and in all of the applications i used to follow the SOAP web service methods to get the data in my applications.
I have heard something on SQLite, but have lots of confusion regarding important of it.
So, if anybody can explain or just give me a hint regarding on SQLite will highly appreciated.
Thanks in advance...
SQLite is a database if you want to have data stored you can use it. You use web service because the data is not stored locally. SQLite allows you to store data locally.
http://dblog.com.au/iphone-development-tutorials/iphone-sdk-tutorial-reading-data-from-a-sqlite-database/
http://www.mobileorchard.com/iphone-sqlite-tutorials-and-libraries/
In a nutshell SQLite is a library used to provide local database access to your iPhone app.
http://www.sqlite.org/