@zeta wrote:
Hello,
Recently I developed an Ionic Chat App(my first) after going trough several tutorials. The application realtime chat functionality was developed using socketIO, and the data are saved into MongoDB. Everything works pretty fine.But here's the issue. When I select a user to begin chat with, my App loads recent chat data from the server then presents it to the user. In a no network scene user experience can be a bad one. Though I know about native storage but my concern is about consistency of data on both server and mobile. Also I read on PouchDB and CouchDB but I think there's a better approach to this instead of re-writing my code i.e changing from mongoDB to Poch or CouchDB.
Please kindly advice me of a better way to load my recent chat between two users, instead of fetching from the server each time the user is selected.
Thanks in advance.
Posts: 1
Participants: 1