xamarin-live-player

Newtonsoft.Json deserialize object in Xamarin iOS project

扶醉桌前 提交于 2019-12-28 03:14:04
问题 I'm getting some very weird behaviour in my Xamarin.Forms Project. I'm retrieving some serialized data from a REST API. I'm then trying to use Json.NET to deserialize that to an object. This works perfectly fine on Android and if I copy the code to a .NET console application it also works. However in my iOS project, the call to .DeserializeObject() just returns null. It doesn't throw an error or complain in any way. I did find this discussion: https://forums.xamarin.com/discussion/15152

Newtonsoft.Json deserialize object in Xamarin iOS project

♀尐吖头ヾ 提交于 2019-12-28 03:13:12
问题 I'm getting some very weird behaviour in my Xamarin.Forms Project. I'm retrieving some serialized data from a REST API. I'm then trying to use Json.NET to deserialize that to an object. This works perfectly fine on Android and if I copy the code to a .NET console application it also works. However in my iOS project, the call to .DeserializeObject() just returns null. It doesn't throw an error or complain in any way. I did find this discussion: https://forums.xamarin.com/discussion/15152

Xamarin Forms with Xamarin Player OAuth2 NInterpretException

半腔热情 提交于 2019-12-25 03:32:36
问题 I'm currently on developing some little application for iOS and Android. Therefore I need an OAuth2 authentication. How I proceeded (from here) Create a new Xamarin.Forms project from the templates with the default Item and About page Add Dependency for Xamarin.Auth Use the button on the about page to trigger a function with the following: var authenticator = new OAuth2Authenticator( "CLIENTID" , "SCOPE", new Uri("AUTH_URL"), new Uri("REDIRECT_URL) null, true); Add the iOS initializer in the

Xamarin Forms with Xamarin Player OAuth2 NInterpretException

一曲冷凌霜 提交于 2019-12-25 03:32:13
问题 I'm currently on developing some little application for iOS and Android. Therefore I need an OAuth2 authentication. How I proceeded (from here) Create a new Xamarin.Forms project from the templates with the default Item and About page Add Dependency for Xamarin.Auth Use the button on the about page to trigger a function with the following: var authenticator = new OAuth2Authenticator( "CLIENTID" , "SCOPE", new Uri("AUTH_URL"), new Uri("REDIRECT_URL) null, true); Add the iOS initializer in the

Xamarin Live Player - Deploy was cancelled

孤街醉人 提交于 2019-12-23 01:12:26
问题 I have trying to debug my android app through Xamarin Live Player , it gets builds but give the error Deploy was cancelled. Has anyone faced this and got this working . 回答1: Xamarin Live player Limitations Some system classes cannot be overridden (for example, you cannot implement a subclass). Some platform features that require provisioning can't work in the Xamarin Live Player app (however it has been configured for common operations like camera access). Custom targets and build steps are

Xamarin Live Player does not start OnCreate in Android project, using the VS default project

喜夏-厌秋 提交于 2019-12-13 02:17:23
问题 All components are up to date, so is Visual Studio. I created a new project: When I start it with the emulators, everything works fine. When I start it with the live player and my Sony Xperia Compact 5, it connects nicely, but the Android code in MainActivity is not used. Only one modification I made, I write to the trace. The breakpoint is also never hit, unless I use an emulator instead. using System; using Android.App; using Android.Content.PM; using Android.Runtime; using Android.Views;

Newtonsoft.Json deserialize object in Xamarin iOS project

会有一股神秘感。 提交于 2019-11-27 09:38:03
I'm getting some very weird behaviour in my Xamarin.Forms Project. I'm retrieving some serialized data from a REST API. I'm then trying to use Json.NET to deserialize that to an object. This works perfectly fine on Android and if I copy the code to a .NET console application it also works. However in my iOS project, the call to .DeserializeObject() just returns null. It doesn't throw an error or complain in any way. I did find this discussion: https://forums.xamarin.com/discussion/15152/deserialization-not-working-with-json-net-on-ios-device-ios-simulator-works , but I didn't link all

JsonConvert.SerializeObject always return {} in XamarinForms

你。 提交于 2019-11-26 21:06:21
JsonConvert.SerializeObject seems to be not working in xamarin forms. Or i might be missing something here. Here is the output when i serialize a simple object. See it returns {}. I tried serializing a class also and it did return the same. What could be the problem here? UPDATE Still no solution to this issue. I tried creating a simple console application and serializeObject is working on that project so i assume it is not working in xamarin forms only. Does anybody have a xamarin forms project where JSON.NET's serializeobject is working? I am using visual studio 2017, json.net 10.0.3 and

JsonConvert.SerializeObject always return {} in XamarinForms

让人想犯罪 __ 提交于 2019-11-26 07:48:41
问题 JsonConvert.SerializeObject seems to be not working in xamarin forms. Or i might be missing something here. Here is the output when i serialize a simple object. See it returns {}. I tried serializing a class also and it did return the same. What could be the problem here? UPDATE Still no solution to this issue. I tried creating a simple console application and serializeObject is working on that project so i assume it is not working in xamarin forms only. Does anybody have a xamarin forms