Ionic and database


#1

Hello everyone,
hope you are good,

So I have a little project, to create an application multi platform for browers, android and IOS
in this project we have user : he registers to application, login and sharing picture with other Users

my question, witch database I should use ? us we must know this application can used in offline, and when the user is online they upload modification

I started with firebase but I’m not sure if It possible or not

Thank you for answering

Cheers


#2

The new firestore database from firebase has offline support built in. If you want to use the realtime database you can use angularfire2-offline for offline support. If you need help getting started using firebase in ionic, take a look at the javebratt.com blog by @javebratt.

If you’re looking for an alternative to firebase, joshmorony.com by @joshmorony has some great articles on using PouchDB and CouchDB (and superlogin), which should also work for your needs.

Hope that helps.
Cheers


#3

Hi

I have build a manual solution for offline/online storage, as I wanted the offline db to be in sqlite, which I believe is not enforced (or not clear to me) on Angularfire2offline/firestore

Basically, online is a Angularfire provider and the Storage ionic provider for offline.

Suited my needs, but not necessarily universal as the syncing is quite rude (no version checking etc, just plain overwrite)

Tom