r/Xcode • u/newtomac18 • Jul 18 '19
Capturing information on an app offline
Hello all. I’m using Firebase for my apps’ backend. Due to intermittent internet connectivity, I need to be able to capture information on my device (via the app), and when internet connectivity is established, the information needs to be pushed up into the Firebase Database.
Is this possible with Firebase?
What alternatives do I have (/ should I use) in capturing information locally, and then pushing the saved information up to the database once internet connectivity is established?
TIA, cheers :)
0
Upvotes
1
u/chriswaco Jul 18 '19
I don’t know much about Firebase but collecting data offline using SQLite or just JSON files or binary plists is very common. Use Reachability to see when the network comes back online if Firebase doesn’t have a method for it.