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 2 years ago.
Improve this question
I am developing an iOS calendar app using swift.
I'm using a firebase database because the server needs some data.
But it takes too long to fetch data, and nothing is visible unless there's a wifi (or cellular) connection.
I want to make my schedule visible even if I turn off wifi or cellular, like Google Calendar or iCalendar.
I heard that there are sqlite, realm, and core data available. Which of these should you use? Can all three be synchronized with firebase?
If you are using Firebase then there is no need of using another Database or saving mechanism. Firebase has offline Capabilities which should suffices your situation.
Have a look at this Offline-Capability
You can enable offline access with just single line of code:
Database.database().isPersistenceEnabled = true
With this enabled, Firebase will automatically handle the synchronisation.
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 3 years ago.
Improve this question
I'm building an iOS app with Swift that currently uses Firebase.
Here is what I want to do:
I have a list of items, whenever I add or subtract items from that list I want to send the updated list to all users, they will receive the updated list the next time they open the app.
How should I approach this? Is it possible with Firebase?
I had the same issue
I solved it by making the users download the list each time the user enters the app.
the issue here is that they must be connected to the internet
you can back it up and check: if internet is offline - use the old list in your local database
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 4 years ago.
Improve this question
If I wanted to make an app that allows users to add their own photos to a UICollectionview what method would I use? Also, how could that be added to Firebase's real-time database?
You need to give your users access to the camera and photo library.
You wouldn’t use the Firebase real-time database, you could use the Firebase Storage module, but I would use a product like Cloudinary, which allows you to do nice things like centring, resizing, facial detection etc.
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 7 years ago.
Improve this question
I am developing an app where I am going to use NSUserDefaults to store some profile variables (name, picture, etc), I think.
I think I need to store some long huge lists of values for each user and I read about Parse and Core Data. What is the best? Can Parse replace Core Data?
What is useful on this case? Both?
Thanks in advance
Parse will store your data on their infrastructure on the cloud. You can enable Parse object caching to keep that data for offline use as well. For most apps I build, I avoid using CoreData (although Parse may be internally using some for of local store, could be CoreData) and use Parse explicitly with caching.
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 8 years ago.
Improve this question
I'm building an app which fetch posts from server. My question is straightforward: My UITableview has a data source. The data source can load data directly from the server when user hit reload. So why do I want a local store like core data?
One benefit is that loading from a local data store is much faster than loading from a web service. As such, a common pattern is to cache the most recently retrieved data in a local data store and display that while you're making an asynchronous request for any updates.
One example would be Facebook's apps. When you open them from a completely shutdown state they are populated with previously loaded posts, and when a refresh request completes the UI then refreshes with the new data.
The thing to remember is that with mobile devices network connectivity can be highly variable and/or non-existent. If your app requires connectivity and up to date info at all times, then maybe you don't need a local store? But it does help improve the overall user experience generally speaking.
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 8 years ago.
Improve this question
I was recently asked to create an iOS app for a client which controls all other installed apps' access to cellular data. For instance, the user would be able to turn off cellular data access to all apps but Safari.
I assumed that this wouldn't be possible because of sand-boxing but couldn't find any relevant info via Google or the developer's docs, so thought I'd ask the question here - is there a specific class or framework I should investigate?
No you can't , Apple does not allow such approaches . So there is no helping class or framework at all.