33914

Store Realm files in Google Drive App Folder?

I am in the early stages of an Android project that will be using a database, hopefully Realm. I want users to be able to access the same database from multiple Android devices (logged in to the same Google account). I am considering placing the Realm files in the Google Drive App folder.

I've done some searching, but have found no discussions of this particular configuration.

I have no prior experience with either Realm or the Google Drive API, so I'm concerned that there may be some fatal flaw(s) with this approach.

Any insights/advice appreciated.

Answer1:

<strong>Edit:</strong> Since I answered this question, Realm launched the Realm Mobile Platform, which is precisely intended for doing this kind of job: Sync an application using a Realm database as the question describes. My previous answer is now obsolete.

<hr>

<strong>Previous answer:</strong> Right now isn't possible to synchronize Realms through devices and keep the app "up to date" everywhere.

There is a similar question in the Github Issues in Realm: How to synchronize Realm data across multiple iOS/Android devices?

From one of the Realm's maintainers:

Since Realm supports JSON importing, interacting with a Web API is probably the best way to synchronize data between devices. See Realm's Rest APIs docs.

However this is a feature they're working on. You can track the realm-cocoa Issue #913 expecting changes in this way.

So, I agree with the comments I cited previously and recommend you to sync your applications using the API.

Recommend

  • mmap() device memory into user space
  • Removing Any Non-Specified Characters from an Excel Spreadsheet using a Macro
  • How can I prevent GCE from copying ssh keys to all new instances?
  • Windows Mercurial global keychain
  • ASP.Net check if user is internal or external
  • Why gcc does not produce type mismatch warning for int and char?
  • Veracode throws “Technology-Specific Input Validation Problems (CWE ID 100)” for a public string pro
  • Bundle install fails - Gem using github url - What is wrong?
  • Doctrine: UniqueEntity with Many-to-Many field
  • How to wait till webViewDidFinishLoad gets completed
  • How can I merge my files when the folder structure has changed using Borland StarTeam?
  • Is it possible to run an application built on sql server 2008 to run with 2005
  • Run EF6 Query in separate Thread on WinForm Button Click Event
  • AVCaptureSession VS UIImagePickerController camera preview
  • Detect language of Word document
  • Distributed JMS based logging .. falling flat?
  • Accessing the variables from a PHP Anonymous Function
  • Error processing multiple files
  • Sensibility of combined Maven/Ant+Ivy build management for dual platform Desktop/Android deployment?
  • Filter strings with regex before casting to numeric
  • Cast between interfaces whose interface signatures are same
  • TextToSpeech.setEngineByPackageName() triggers NullPointerException
  • Spring Cloud Microservice Architecture Confusion
  • Eloquent paginate function in Slim 3 project using twig
  • Create DicomImage from scratch using Dcmtk
  • Ensure fsync did its job
  • How to attach a node.js readable stream to a Sendgrid email?
  • How to do unit test for HttpContext.Current.Server.MapPath
  • How can I send an e-mail from a vbs script
  • Nant, Vault & Windows Integrated Authentication
  • How to make a tree having multiple type of nodes and each node can have multiple child nodes in java
  • Hazelcast - OperationTimeoutException
  • Timeout for blocking function call, i.e., how to stop waiting for user input after X seconds?
  • RestKit - RKRequestDelegate does not exist
  • Is there a mandatory requirement to switch app.yaml?
  • Revoking OAuth Access Token Results in 404 Not Found
  • How does Linux kernel interrupt the application?
  • Are Kotlin's Float, Int etc optimised to built-in types in the JVM? [duplicate]
  • UserPrincipal.Current returns apppool on IIS
  • Why do underscore prefixed variables exist?