Languages

Menu
Sites
Language
How to use JSON parser and HTTPClient on Tizen5.0 wearable on Xamarin.Forms(C#.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. 

 

    

Edited by: Jaehong Park on 25 Nov, 2020
View Selected Answer

Responses

1 Replies
Mark as answer
Tizen .NET

Hi,
Please add internet privilege in tizen-manifest.xml file. It works well on Tizen 5.5 wearable emulator.

<privileges>
    <privilege>http://tizen.org/privilege/internet</privilege>
</privileges>

Thanks.