mongodb / stitch-js-sdk

MongoDB Stitch JavaScript SDK
Apache License 2.0
113 stars 67 forks source link

Mobile Sync Please #195

Open rilsikane opened 5 years ago

rilsikane commented 5 years ago

Please include Mobile Sync Function

adamchel commented 5 years ago

Hi @rilsikane ,

We unfortunately have not yet planned to support mobile sync with the JavaScript SDK. That would require running an embedded MongoDB instance in the browser, which is not yet supported.

However, we did just release a feature that supports getting real-time updates about specific documents in a collection, which might help accomplish what you're looking to do.

See https://github.com/mongodb/stitch-js-sdk/blob/master/packages/browser/services/mongodb-remote/src/RemoteMongoCollection.ts#L216

Let me know if you have any other questions!

adrian-gierakowski commented 5 years ago

@adamchel what about mobile sync for ReactNative?

adamchel commented 5 years ago

@adrian-gierakowski full-fledged mobile sync for React Native is something we plan on eventually supporting, but it is not currently scheduled. I'll update you when we have more news about that.

robert-cronin commented 5 years ago

+1 for mobile sync on JS SDK, would be a great feature

mvogttech commented 5 years ago

+1 for mobile sync. Something similar to minimongo by the @Meteor team would be great. Any updates on when this feature will be coming? I am looking to do a really large project and am currently in-between using Stitch and CouchDB/PouchDB.

EDIT: Also, is this something our company could sponsor the development of to speed-up the feature release?

claustres commented 5 years ago

To use mobile sync with current native technologies but in web-based apps maybe a cordova plugin is worth it ?

kisinga commented 5 years ago

Has anyone had any success with service-workers to cache requests on angular? This might be a temporary workaround to cater for network stutters

arnaldoperez commented 5 years ago

+1 Would be great something to sync a PWA, like Google Firebase but with MongoDB. It's just so powerfull that I want MongoDB to all my projects!!