I am programming an android Meteor Mobile Cordova app for data collection. This is currently for
an academic research framework, but it will be translated
to a clinical environment in due course.
The Meteor clients need to be able to work offline most of the time and
create persistent entries in the local minimongo for each individual
data collection event. Also, at any one time the app should be able to
display on the client the list of data collection
events currently stored locally. When put on the network with the
server, the clients should be able able to (ideally automatically) send
their data to the server and delete their local copies. Ideally the
server should send some form of acknowledgment back
to client about safe receipt of data. The clients should be completely
independent from each other and only communicate with the server.
I have two issues that I have not managed to tackle so far. The first
issue is to make the clients completely independent, specifically
avoiding sync-ing data from one client to all the other. I have tried to
restrict access by subscribing each data collection
session to only the document in the collection pertinent to that
session. However, when doing that, I don’t seem to be able to access
(for browsing) all the data events currently stored. The second issue
relates to the ability to sync only with the server
and then delete local copies of the data.
This is the first app I implement in Meteor. I have gone through the
tutorials and scoured the discussion forums. However, I could not find
any resource that addresses issues similar with mine. I would really
appreciate your help and/or advice.