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

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: 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 (Inactive)
            Reporter:
            Unito Sync Bot
            Archiver:
            Marc Greenfield

              Created:
              Updated:
              Resolved:
              Archived: