I’m working on development mode on Android and have changed the following schema on Atlas UI as well as in Android model schema. I know it’s a destructive schema and it’s intentional, since I’m working development. I got following error:
Exception has been thrown: The following changes cannot be made in additive-only schema mode:
- Property 'Customer.updated' has been changed from 'string' to 'date'.
I have tried following, still not working:
- Terminated Sync and Enable sync
- Disabled
Development Mode
- Uninstalled App and Reinstalled app
- Tried adding following default
client Reset logic
from doc:
app = new App(new AppConfiguration.Builder(appID)
.defaultSyncClientResetStrategy(new DiscardUnsyncedChangesStrategy() {
@Override
public void onBeforeReset(Realm realm) {
Log.w("EXAMPLE", "Beginning client reset for " + realm.getPath());
}
@Override
public void onAfterReset(Realm before, Realm after) {
Log.w("EXAMPLE", "Finished client reset for " + before.getPath());
}
@Override
public void onError(SyncSession session, ClientResetRequiredError error) {
Log.e("EXAMPLE", "Couldn't handle the client reset automatically." + " Falling back to manual recovery: " + error.getErrorMessage());
//handleManualReset(session.getUser().getApp(), session, error);
}
@Override
public void onManualResetFallback(SyncSession session, ClientResetRequiredError error) {
Log.e("EXAMPLE", "onManualResetFallback : " + error.getErrorMessage());
}
})
.build());
Still not working. Same error.
One strange thing is, when I install the app on another device, it’s working fine. But unistall/install on my device doesn’t work.