RESTful service on emulator

时光总嘲笑我的痴心妄想 提交于 2019-12-12 04:33:35

问题


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


回答1:


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>



回答2:


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



来源:https://stackoverflow.com/questions/44054522/restful-service-on-emulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!