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
So I am creating an app for IOS with xcode and swift and I am using SQLite as a database(not my choice) and I dont understand if I need a server or not.
Thank you in advance
Basically it depends on your requirement. If you want to store your data outside of the mobile itself for any reason such as fetching and updating them from multiple devices you can use a server to host your database and perform read, write operations. If not, if you only want to use your data inside your app itself, you can make use of the SQLite databases and perform read and write operations locally.
No, iOS actually uses SQLite in the Core Data on the device. Here you can see a tutorial on using SQLite in Swift on a device https://www.raywenderlich.com/6620276-sqlite-with-swift-tutorial-getting-started
Related
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
"Half-offline" app in my definition is an app with pre-populated data and the ability to update data.
For example:
Recipe app
Collection of quotes
Short tales
When a user installs the app, it comes with a number of recipes/quotes/tales inside. Then after some time, a user can update the collection manually. Updates can be requested from Firebase or own servers.
So what is the most correct way to pre-populate a SQL/NoSQL database or file assets and what software I should use to pre-populate a database?
From my experience, I prefer to start using Firebase Firestore, they already solved the online/offline structures, and you can do the steps by following this article
If you want to handle it by yourself, you can build and create your own SQLite, you can do that by following this article too, in this stage you can update the data every week, month by calling a single API request from your side.
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 want to insert data into a table view cell in Xcode automatically so that it grabs data from my Firestore database and inserts into the cells. I have two questions:
1) Is this possible, and if so, how would I do it?
2) If I wanted to use something like a listener, so it would update in realtime, how would I do this?
Thank you so much!
If you are developing for IOS 13+ you can try to use combine for that check this link:
http://trycombine.com/posts/combinedatasources-simple-static-list/
Also if there’s a framework called RxSwift that you can create reactive code based on incomes from Firebase real time data. You can check it out here:
https://github.com/ReactiveX/RxSwift
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 5 years ago.
Improve this question
I want to make an app like Instagram but the problem is where to store all text and images data, I have used Instagram when there is no connectivity available then app will show the last feeds even when app is freshly openend (not from background). It uses core data or sqlite.
I came across a scaling presentation from instagram a little while back where they talk how they started, using what and then how they approached the challenges.
See the link: http://www.scribd.com/doc/89025069/Mike-Krieger-Instagram-at-the-Airbnb-tech-talk-on-Scaling-Instagram
Hope this helps.
It's not known what Instagram uses. Use whatever you feel most comfortable with. Anything is possible with any storage technology, although some might fit better than others. Also, regarding your question on "core data or sqlite", you can use Core Data with an SQLite database as a backend (way easier than accessing raw SQL). You can also use other backends with Core Data: binary and XML.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I want to developed iphone application in which i want to track another iphone on google map with in 10km region what kind of API can i use please tell me
Thanks
You'll need the device you're tracking to tell you its position. That means that it'll have to be running some app (possibly the same app) to get its position using Core Location. Then, it'll have to provide that information. As Richard Ross points out in his comment, you could do that using GameKit. Another approach would be to have the device send its location to a server that you create, perhaps using a web service. Your device would then query the server to find out the location(s) of device(s) it cares about.
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 8 years ago.
Improve this question
What is the role of SQLLite in iPhone programming? Where do we use it? Is there any nice link to read around this topic in detail with sample code?
SQLite is a lightweight in-memory relational database, that can be used directly by iOS apps, or as a persistent store for Core Data.
Here's a good list of resources about directly using SQLite on iPhone. And the Apple Developer Center has a lot of info on how to use it as a store for Core Data (and how to use Core Data itself, of course).