Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-355

can I add/remove sync capabilities freely to a realm?

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      <!---

      Questions: If you have questions about HOW TO use Realm, please ask on
      StackOverflow: http://stackoverflow.com/questions/ask?tags=realm
      We monitor the realm tag.

      Feature Request: Just fill in the first two sections below.

      Bugs: To help you as fast as possible with an issue please describe your issue
      and the steps you have taken to reproduce it in as much detail as possible.

      -->

      Goals

      <!--- What are you trying to achieve? -->
      In my app, syncing to a server is a 'premium' feature. essentially, users can create a local realm database to store app data but backing up requires a subscription. because of this, whether a realm should be synced or not can change at any time. I've seen the docs on migrating a local realm to a synced one, but it seems like it will add a lot of complexity to go back and forth. is there a simple way to, for example, set up a synced realm but not give it a sync address? or would this involve connecting to a custom auth server of some sort and checking if the user has a subscription, then syncing manually?

      • Realm JS SDK Version: 1.13.0
      • Node or React Native: React Native
      • Client OS & Version: n/a
      • Which debugger for React Native: None

            Assignee:
            franck.franck@mongodb.com Franck Franck (Inactive)
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: