I want to do some custom error logging in my Xamarin application and store these objects using realm sync. I want to use an object similar to this:
[MapTo("error_details")]
public class ErrorDetails : RealmObject
{
[PrimaryKey]
[MapTo("_id")]
public int Id { get; set; }
[MapTo("user_id")]
public int Userid { get; set; }
[MapTo("error_date")]
public DateTimeOffset ErrorDate { get; set; }
[MapTo("debug_message")]
public string DebugMessage { get; set; }
[MapTo("error_exception")]
public string ErrorException { get; set; }
}
However, I don’t want all the realm objects to be stored locally, I want to write to a realm and sync it to the server without downloading all the synced realm objects that belong to the realm, in a sort of fire-and-forget fashion. Is there a way to do this?