Search code examples
javaandroidswiftios8realm

Realm Database Cross Platform Compatibility?


Could a 'realm' be created by Realm Java and be read by Realm for iOS(8)? How cross platform compatible is the Realm Databasing system? I have an idea for a mobile app where I would like to create a 'realm' with a standard java class -- possibly a behind the scene function to a web site -- and then have the mobile app retrieve the 'realm' and read its data. (I hope that made sense.)


Solution

  • Absolutely!

    Providing the model object class definitions are the same on both platforms, it's entirely possible to move a Realm file between an iOS device and an Android device (and vice versa) and properly read/write to them! :)

    (Disclaimer: I work for Realm.)