Persistence database with Meteor DDP in Offline mode

Hi,

I want to create an application which should work like below

  1. A Meteor-Ionic application.
  2. It should display data from server using Meteor DDP.
  3. It should display data when device has internet connection available.
  4. It should display data when device has no internet connection but application is in memory.
  5. It should display data when device has no internet connection and application has removed from memory and opening the app in offline mode.
  6. If user adds anything to persistence database in offline mode, it should be synced with server when app comes in online mode.

Please any one suggest me how to do this or send me any link or code if anybody has tried and sample is available.
I have tried with https://atmospherejs.com/frozeman/persistent-minimongo2 package but it is not working for point 5.

Thanks,
Niketa.

You could try grounddb: https://atmospherejs.com/ground/db

Let us know if it works for point 5 as well!