Best Database to use for iOS application [closed] - ios

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am trying to develop an iOS app (Swift) that requires the use of database. The app will have three different users login and courses. I have 5 database tables that i will have in my app but I am not sure which database platform to use. (I have done research and some people recommend Core data and others say Realm)Thank you for your suggestions.

Depend upon your requirement you need to choose Realm, Sqlite and CoreData database.
For Reference check this link
https://rollout.io/blog/ios-databases-sqllite-core-data-realm/

Since you are just getting started, I would suggest you to try out CoreData and see if it works for your use case. It is object oriented, works well across all Apple platforms and is well integrated with Xcode. Although, please note that this only works for local data. However, if you need (or wish) to store the data on remote server then Firebase would be the way to go. Also this might be preferable if you later wish to do analytics based on the data stored.
Both of these work pretty well and aren't exactly comparable to each other coz they have different purpose. You just need to figure out what's your long term use case and plan it out. For more details check this: https://www.quora.com/How-does-Firebase-compare-to-Core-Data

You can use Firebase if you do not want to setup your own database. You can then assign 'roles' to the users logging in. Check out Firebase authentication documentation.

If you're doing it locally, Core Data is fine.
But if you're doing it remotely (over the Internet, in the cloud), then Firebase is OK.

Related

Swift Database with real time sync from the server [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I'm actually creating my first personal project with swift which is an app that will present every prospect in the next NFL draft with info about them. I want to do kind of a database for the users to be able to browse around every player.
What I don't know how to do yet is how should I do to store the data. I thought about realm or coreData but I want to find a solution that will allow me to sync the data from a server to update the info in real-time for the users. There is no user data to update or save. I find the MongoDB Realm platform but I don't find a lot of resources about it. If anyone has any idea for how I should do, already thank you!
Have a nice day,
Matteo!
I've made good experiences with Firestore. Its free (up to a certain usage) and has quite some good and clear documentation.
https://firebase.google.com/docs/firestore/query-data/listen
I agree with the other answer. Firebase is a fantastic realtime database to use for this specific idea. It's extremely easy to get started and the documentation is straight forward. I just started using it a couple weeks ago after switching over from AWS.

How to save data and then share it with React Native? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am beginner to building Apps with React Native + Redux.
I am trying to create an App family budget. It's almost done.
BUT I have two questions for them who already created these kind of apps.
What is the best way to save data? I want to save it (data: expenses/dates/category etc) on devices iOS (not database) if it's possible. I think it does not take a lot of memory. I've read about AsyncStorage, but not sure about it. Is it still present after reloading App/Phone?
How to share data between two users? I want to make a function, like sharing the budget between family members.
I will be very grateful for the recommendations and suggestions, maybe even for some good articles with explanation.
Thanks!
If you are using redux, you can use redux-persist to store your state on devices.
To share data between devices, you probably need to implement a remote server (cloud), which receives budget changes and propagates them to other family members.

Is it ok if the framework has inbuilt database? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
Me and one fellow developer are working on a iOS framework and we are in a debatable situation. I will try to explain it in more details below
Questions: Is it a good practice to bundle the database in the framework, instead of allowing developer using our developed framework to implement the local database of his own.
My argument: We should never bundle the database within the framework and we should allow user to implement the local database of his own so that perform different operations in the app as per his/her convenience. We should never force the developer to be dependent on the database and database structure we created for various tasks such as caching or offline storage. As a framework provider what we should provide is a base using which he can access functionality provided by our platform.
His argument: The database should be bundled in the framework itself so that developer can directly implement the front end of the app instead of managing database and its architecture. It doesn't matter if he want to use our database or not. If he doesn't want to use anything he will simply ignore it.
I would like to know which is a correct approach for designing a SDK/framework
There can be multiple databases, the fact that a framework has a database doesn't mean that the app that using the framework can't have a database and that shouldn't be a consideration for the framework.
If your framework can offer database or caching capabilities as an option then great , and if someone thinks that he can manage database better then your framework can and wants to do it by himself then also great.
I would think how can the framework suggest local database as an optional feature of the framework.

How to create a poll on IOS? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
hi I’m new to IOS development i have developed only one application in iOS now i want to make a polling app in IOS i Google every where i did’t get a proper solution to make a polling app.
In my polling app i want get input poll form the user and i have to store in database and i have to calculate the value for the polling and i have to show the result how many people voted .
so please can any one suggest what is right way to make polling in IOS or is there any alternative way to make this.
thanks.
Assuming you want to store your results on a back end web server with a DB then you would first need to write some web services. I personally would suggest a combination of PHP and MySQL as they're both open source and relatively easy to get to grips with. I also recommend you use JSON as your data interchange format as it provides a human readable structure without the complexity of XML.
Once you have a functioning back end you would need to build an app with the appropriate data fields that you want in either one or multiple views. Personally I would put all of your questions into an array and then cycle through them changing the input controls if necessary. You can then add your answers to an NSMutableArray.
Once you have your complete answer set in your NSMutableArray you can serialise it to JSON and transmit it off to your web service.
There are many guides for getting started with JSON on iOS available, I would suggest you take a look at this one.
Your question is business specific (not to iOS, iPhone & objective C).
So I would suggest you to better try these APIs available in market.
support.polldaddy.com
Poll EveryWhere
TypeForm
Hope that helps.

How to store data on the internet for an iOS App [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
So I know this is a pretty simple question, but I've looked through all of my iOS textbook and can't seem to find out how people do this. I just want to store and edit an array on the internet. That is, let's say all of the data for my application is stored in an NSMutableArray. Ignoring the complications that occur with people editing the array at the same time, how would I allow multiple people to go into my app and then through that app access and edit the NSMutableArray for others to see?
There are a ton of options here, some of which were listed by #Zaph. The most common scenario to share data between a ton of random users is to setup your own server to run an API that you app will be able to communicate with. This is commonly referred to as the "Backend". The solutions here are vast, written in many different languages and sometimes even provided by third parties services. My advice is to pickup a simple, easy to learn server-side setup like Ruby-on-Rails, then deploy test app on Heroku as they provide free accounts to play with.
In addition to the options #coneybeare provided some others include DropBox, Parse and Azure.
Dropbox requires each user so setup an account.
Parse and Azure have rather easy APIs but you will be paying past the free tier.

Resources