When using ObjectID in xamarin.forms with UWP and native compiling an error occures. I get the exception:
System.Runtime.InteropServices.MarshalDirectiveException: Incompatible MarshalAs detected in parameter named 'value'. Please refer to MCG's warning message for more information.
at __Interop.realm_wrappers.get_primitive__0(ObjectHandle, IntPtr, PrimitiveValue&, NativeException&) + 0x63
at Realms.ObjectHandle.NativeMethods.get_primitive(ObjectHandle, IntPtr, PrimitiveValue&, NativeException&) + 0x8
at Realms.ObjectHandle.GetPrimitive(IntPtr, PropertyType) + 0x3b
at Realms.RealmObjectBase.GetRealmIntegerValue[T](String) + 0x33
at TrackTime.Helpers.DateTimeHelper.SetCulture(PersonRealmObject) + 0x293
at TrackTime.App.OnStart() + 0x481
It seams that using ObjectID is not suported on .NET xamarin.forms for UWP!