How do Realm add existing user data to the mobile platform?

此生再无相见时 提交于 2019-12-12 03:42:27

问题


I am currently using Realm as an offline database in the iOS app.
if I were to add support for Realm mobile platform, will it automatically grab all the Realm user data and migrate it to the cloud?
Or
is there some code that is needed to move the data to the cloud?


回答1:


Realm Mobile Platform is not a cloud service but consists of Realm Object Server, a server application you can run on your own (supports various flavors of Linux) and Realm Mobile Database. If you are already using Realm Mobile Database in your app today, you cannot just upgrade and expect those Realms to sync with Realm Object server. Instead you much create synchronized Realms through the new API and copy data from the existing Realm into the synchronized Realm.



来源:https://stackoverflow.com/questions/40054787/how-do-realm-add-existing-user-data-to-the-mobile-platform

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!