I want to allow my users to login and add information to my Android app while offline. This requires that I use Ground:db to have local copy of the database. It appears that v2 of ground:db is read-only (I’m not sure I’m reading that correctly). I used v0.3.5 in order to have the methodResume function.
I’ve installed ground:db like so
meteor add ground:db@0.3.5
And I’ve added the following lines of code to my app:
if( Meteor.isCordova ) {
// This represents all of my collections
Ground.Collection(Entries);
Ground.Collection(Forms);
Ground.Collection(Photos);
Ground.Collection(Projects);
}
Ground.Collection(Meteor.users);
if( Meteor.isClient ) {
Ground.methodResume([
'createEntry',
'updateEntry',
'removeEntry',
'createForm',
'updateForm',
'removeForm',
'createPhoto',
'updatePhoto',
'removePhoto',
'createProject',
'updateProject',
'removeProject',
'updateUserDetails'
]);
}
When i have my app loaded and connected, everything is working well. As soon as I turn off my wifi (and thus turn to disconnected), my subscriptions don’t load.
Am I missing something?