-
Notifications
You must be signed in to change notification settings - Fork 564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version mismatch does not block sync #6603
Comments
➤ PM Bot commented: Jira ticket: RJS-2795 |
@kneth Is there a way to specify a version number to Realm and not allow Realm to sync if there is a version mismatch? A solution to not impact and destroy all data until the app is updated? |
@HugoBounoua I am curious to know if you use v12.6.0 has a upgrade to Realm Core with realm/realm-core#7239. Do you use flexible sync? |
I'm curious about
Unless RealmProvider does something I'm not aware of, Additionally, server-side schema migrations is not a feature that is enabled by default across all apps yet. Have you requested that it manually gets enabled for your app? |
I don't think that's possible yet. Also, this will be done automatically soon by the client if async open is used (so users need connectivity) and the new schema contains the following subset of breaking changes (remove table, remove property, change optional property to required, change required property to optional) |
How frequently does the bug occur?
Always
Description
In React Native with synced Realm offline first:
When the Realm schema is updated with breaking changes, even with available migrations, all users who do not update their app before going online with an old local Realm lose all their data.
Nothing (to my knowledge) can prevent the sync from happening, even though the app needs to be updated and the migrations applied first.
Example:
My app is currently in version 1.1.9. The schema has been updated with breaking changes today. Those changes are handled by migrations in the app using "onMigration" function on the RealmProvider if a user updates to version 1.1.9.
If a user was connected last week in version 1.1.8 and stayed offline until today, they will have 2 choices:
OR
I cannot ask all my clients to check for a new update whenever they find an internet signal.
As far as I know, there is no way to prevent that at the moment, which is a complete blocking point for our product.
Stacktrace & log output
No response
Can you reproduce the bug?
Always
Reproduction Steps
Version
12.6.2
What services are you using?
Both Atlas Device Sync and Atlas App Services
Are you using encryption?
Yes
Platform OS and version(s)
React Native iOS 17.4
Build environment
Which debugger for React Native: ..
Cocoapods version
No response
The text was updated successfully, but these errors were encountered: