Are there any plans to get this library to work with Universal Windows Apps or with Xamarin?
to see the fail simply
create an out of the box UWP and in the MainPage.xaml.cs after this.InitializeComponent() paste:
-or-
create an out of the box Xamarin Form and in the Portable project and in the MainPage.xaml.cs after this.InitializeComponent() paste:
var client = PlayerIO.Authenticate(
"<game tag>", // Fill in your game tag
"public", //Your connection id
new Dictionary<string, string> { //Authentication arguments
{ "userId", "MyUserName" },
},
null //PlayerInsight segments
);
DatabaseObject myPlayerObject = client.BigDB.LoadMyPlayerObject();
myPlayerObject.Set("awesome", true); // set properties
myPlayerObject.Save(); // save changes
var connection = client.Multiplayer.CreateJoinRoom("my-room-id", "bounce", true, null, null);
Debug.WriteLine("Joined Multiplayer Room");
// on message => print to console
connection.OnMessage += delegate (object sender, PlayerIOClient.Message m) {
Debug.WriteLine(m.ToString());
};
// when disconnected => print reason
connection.OnDisconnect += delegate (object sender, string reason) {
Debug.WriteLine("Disconnected, reason = " + reason);
};
Basically you get:
System.TypeLoadException: 'Could not load type 'System.Net.WebRequest' from assembly 'System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'.'