How to use JSON parser and HTTPClient on Tizen5.0 wearable on Xamarin.Forms(C#.NET)

How to use JSON parser and HTTPClient on Tizen5.0 wearable on Xamarin.Forms(C#.NET)

BY 25 Nov 2020 Tizen .NET

I tried to use HTTPClient(GET method) and JSON parser on my Tizen 5.0 Wearable App.

 

So I did use API from “using System.Net.Http” and “using Newtonsoft.Json” after refering to “https://github.com/Samsung/Tizen-CSharp-Samples/blob/master/Wearable/Weather/Weather/Utils/Request.cs” source.

 

The sample codes are as following: 

=> https://github.com/freeNanum/TizenGalaxyYourIPGeoInfo/blob/main/TizenPublicIPInfo/TizenPublicIPInfo/Main.xaml.cs

 

However, the watch emulator based on Tizen 5.0 didn’t work properly when requesting http request and parsing the json from the response.

In addition, when I tested the same codes on both Android emulator and UWP(windows 10) app , it did work well.

 

Please let us know the reason why the emulator did not work. 

 

    

Written by