It's correct that all data is wiped from the app's database when a user logs out. However, an automatic synchronisation is triggered at log-out, so any locally committed items will be synched at that time. Only uncommitted objects will be lost. Therefore it's a good idea to only let a user log out when they have connection, and model your app in a way that prevents data-loss.