0

I use RESTful service on Tizen emulator , this service works on android simulator but dose not work on Tizen emulator , How Can I test RESTful service on emulator in general? What are the possible issues for this problem ? I use visual studio 2017 Thanks

Fattaneh
  • 143
  • 1
  • 4
  • 13
  • Are using Tizen Studio ? or Visual Studio for Tizen.NET ? – Iqbal hossain May 19 '17 at 05:19
  • Give me some informations ... 1. Which type of app are you developing ...Tizen Web, Tizen.NET .. – Iqbal hossain May 19 '17 at 06:19
  • 2. As per my understand, you are trying to consume a REST service from your Tizen App. but you can't consume it from emulator. And you can consume it from Android Simulator. That means RESTful Service is valid. – Iqbal hossain May 19 '17 at 06:21
  • I use visual studio 2017 and Tizen.Net for developing Tizen mobile App. Yes, my REST service was good on android but not on Tizen emulator. – Fattaneh May 19 '17 at 21:25

2 Answers2

0

If you are using Tizen Studio, for security reasons, you need to give permissions to the url of your RESTful service. It's very simple, you need to add this line to your config.xml:

<tizen:metadata key="http://samsung.com/tv/metadata/use.preview" value="endpoint_URL=https://your.url"/>

Check too if you have this additional permissions in your Config.xml:

<tizen:privilege name="http://tizen.org/privilege/internet"/>

Please, try it

0

As you are using Visual Studio for Tizen Development, i am assuming that you are developing Tizen.NET app.

You have go give internet privilege to allow the app to consume a web service. Add the privilege from tizen-manifest.xml Privileges section.

<manifest>
  .....
  .....
  <privileges>
     <privilege>http://tizen.org/privilege/internet</privilege>
  </privileges>
</manifest>
Iqbal hossain
  • 1,778
  • 3
  • 17
  • 24