general-porpoise / snapcache

Snapcache allows users to create, share, and discover geocached time capsules with their friends.
http://snapcache.co/
5 stars 4 forks source link

(refactor) Ensure real-time updates for Outbox and Outbox Detail #214

Closed cgrinaldi closed 9 years ago

cgrinaldi commented 9 years ago

In Outbox Detail, we use Angular Fire so that whenever any user adds an item to the cache, it is immediately visible to all users with that detail open.

In Outbox, we setup a Firebase listener for 'child_added', which is run initially whenever the user opens the outbox, and every time a cache is added. This ensures that whenever the user creates a cache, or when someone invites him/her to a cache, that it is immediately available.

getContributable has been removed from CachesService since it is no longer being used.

Closes #211

annekef commented 9 years ago

Spiffy!