Can a C++ Flutter plugin (FFI) access a Flutter-hosted realm?

My Flutter app makes use of Realm and also a custom C++ plugin. It would be very convenient if
the C++ plugin could access the Flutter-hosted realm directly instead of communicating its changes back to Flutter through FFI functions for saving.

It feels like a longshot, but is there a convenient and safe way to access a Flutter realm from C++
code running via FFI?

This should be doable by mixing the realm-cpp and realm-dart SDK’s once the RealmCore versions are compatible. You’ll want to setup the disconnectedSync functionality on the Dart SDK which will make the Dart SDK the secondary process, this will make the C++ SDK the main process for Sync functionality.

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.