question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

Goals

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Talor-Acommented, Jun 6, 2020

@nguyen-tam we never found a solution to this problem and I’m no longer on the team building that project. Sorry, best of luck

0reactions
fronckcommented, Mar 21, 2022

This issue will be addressed by #4331, which provides the ability to convert Realms to/from Sync in a consistent manner.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Realm The property type Tender[] cannot be expressed as ...
I have a pretty basic collection for sales in C# with two nested arrays of objects. [Serialized] public class Sale : RealmObject {...
Read more >
Realms [Cisco Secure Firewall Management Center]
About User Synchronization. You can configure a realm or realm sequence to establish a connection between the management center and an LDAP ...
Read more >
Disable Realm Sync only for non-premium users
This is super easy to do! When you only want to work with a local realm, connect to it with no config -...
Read more >
realm | Yarn - Package Manager
Fast: Realm is faster than even raw SQLite on common operations, while maintaining an extremely rich feature set. Device Sync: Makes it simple...
Read more >
MongoDB vs Realm | What are the differences?
It supports JSON objects so you can mimic the MongoDB functionality, ... gives you an GraphQL api guaranteed to be in sync with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found