delight-im / Android-DDP

[UNMAINTAINED] Meteor's Distributed Data Protocol (DDP) for clients on Android
Apache License 2.0
274 stars 54 forks source link

Question: how to get the initial collection items? #38

Closed grago closed 8 years ago

grago commented 8 years ago

This must be a very dumb question, but how can i get all the initial collection items after subscribing to it?

I've looked into the onSuccess callback of the SubscribeListener but i didn't have any luck.

Thanks.

iahvector commented 8 years ago

You will receive them automatically in the onDataAdded callback passed to the meteor singleton. Make Sure to check that the data wsa not added before as you'll receive them again each time you login.

ocram commented 8 years ago

@grago There are no dumb questions :)

@iahvector Thanks for helping out!