As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
I've seened a twitter post recently about the use React Native for various Mirosoft products such as Teams, Skype, Outlook etc.
My question is why they don't used Xamarin.Forms at all to build a cross platform app since they invested in it and bought the company instead they use RN. I'm just wondering if Xamarin in the near feature would die?
Thanks very much. For anyone reading this, you need to explicitly reference the System.Runtime.Serialization assembly to get access to DataContract and DataMember.
Hello Stephen,
The reported issue is most likely related to some specifics in the complex objects usage and limitations of SQLite. Classes for complex objects must have [DataContract] and [DataMember] attributes as shown in the example below. Additionally, SQLite does not support generic lists by default - the workaround there is that generic lists can be included in classes, which are complex objects. Changing from AUTO to NETWORK data store type resolves the issue because no data is stored on the device, which means that SQLite is no longer used.
Here is a basic example of the points mentioned above:
[JsonObject(MemberSerialization.OptIn)] public class Route : Entity { [Kinvey.Preserve, JsonProperty("StopList "), Column("StopList")] public StopList StopList { get; set; } } [JsonObject(MemberSerialization.OptIn)] [DataContract] public class StopList : Entity { [Kinvey.Preserve, JsonProperty("stops")] [DataMember] public List<string> Stops { get; set; } = new List<string>(); }
I hope this is of any help. Please, let me know if you require further assistance.
Regards,
Garo
I should note that changing from AUTO to NETWORK data store type fixes this.
Stephen Gaukrodger
I have a very simple problem I can't figure out.
When I try to create a DataStore that has an object with a collection as a child, I get System.NotSupportedException: 'Don't know about System.Collections.Generic.List`1[System.Int32]'. This error comes from SQLite.NET.
https://forums.xamarin.com/discussion/2546/create-table-in-xamarin-throws-exception-because-of-generic-list
The actual type of the collection - List, Array, IEnumerable - and the type of the item in the collection - int, string, a class - doesn't seem to matter. It just doesn't like collections.
I couldn't find any .NET documentation on this, and I couldn't find anything in the forums - the only other reference I found had the solution "I stopped using Kinvey"
https://support.kinvey.com/support/discussions/topics/12000016274
Here's a simple program that can replicate the error.
Windows 10
.NET Framework 4.8
Development Environment: VS 2019
Kinvey SDK Version: 4.3.2