Languages

English

Managing the policy

Dear All,

I would like to add an Network URL in config.xml. But the add button is greyed out and adding it to the config file will prevent the project from compiling. How can this be resolved?

 

Thanks

 

Regards

 

Responses

13 Replies
Anna K

Are you seeing this problem for all the web projects or only one specific one?

Elwin Sylvester

For every project I've created in Tizen IDE for wearables. It says ih the documentation that watch emulator doesn't have internet access. A policy needs to be created for the watch emulator to have internet access. But I can't configure access by adding a network url in Policy?

https://developer.tizen.org/dev-guide/2.2.0/?topic=%2Forg.tizen.web.appprogramming%2Fhtml%2Fapp_dev_process%2Faccessing_external_network_resources.htm

Madhuri A

For Wearable as we cannot directly access internet, there is no way to add network policy. If your app should access internet, then you need to a service app in your phone and then send data to your wearable app.

Marco Buettner

You can add it on the source code tab

Elwin Sylvester

Unfortunately I tried that already by adding i.e. to the source file

<access origin="http://www.tizen.org" subdomains="true"/>

You'll get an error message when you run your project.

"there is an error in the configuration file"

Marco Buettner

Can you share your complete config.xml?
 

Elwin Sylvester

Sure. I opened a sample Tizen wearable project. Added an access element. 

 

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns:tizen="http://tizen.org/ns/widgets" xmlns="http://www.w3.org/ns/widgets" id="http://yourdomain/testing" version="1.0.0" viewmodes="maximized">
    <tizen:application id="pxiP4y5quE.testing" package="pxiP4y5quE" required_version="1.0"/>
    <content src="index.html"/>
    <feature name="http://tizen.org/feature/screen.size.all"/>
    <icon src="icon.png"/>
    <name>testing</name>
 <access origin="http://www.tizen.org" subdomains="true"/>
</widget>

 

AVSukhov

Hello,

Could you tell what this error in config file?

Or try to clean/recreate project.

Elwin Sylvester

This is the error I  get : "there is an error in the configuration file"

I've recreated the project a couple of times already on diffrent machines. How do you get internet acces on the emulator?

Anna K

I am facing exactly same problem on Tizen wearable SDK. The Add button is greyed out. there is no way to add policy in wearable SDK. 

 

Daniel Hill

Facing the exact same issue.

Madhuri A

For wearable as we cannot directly access internet, there is no way to add network policy. If your app should access internet, then you need to create a service app in your phone and then send data to your wearable app.

 

Daniel Hill

Can you provide the necessary privileges and maybe some pseudo code that I can use to send a simple string message between the service app and the wearable?