Languages

Menu
Sites
Language
Error when adding access tag to config.xml

Hello,

I've been attempting to add a <access origin="*" subdomains="true"></access> line to my config.xml file and it keeps throwing an error when I try to build.

Is there a new way of declaring the access parameter? Here is my config code:

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://thehydrogenclub.com/XXX" version="1.0.0" viewmodes="maximized">
    <access origin="firebaseio.com" subdomains="true"></access>
    <tizen:application id="XXX.Name" package="XXX" required_version="2.2"/>
    <content src="index.html"/>
    <tizen:content-security-policy>allow '*'; media-src *; img-src *; script-src 'self' https://*.firebaseio.com; style-src 'self';</tizen:content-security-policy>
    <feature name="http://tizen.org/feature/screen.size.normal.320.320"/>
    <icon src="icon.png" height="170" width="170"/>
    <name>Hydrogen</name>
    <tizen:privilege name="http://tizen.org/privilege/application"/>
    <tizen:privilege name="http://tizen.org/privilege/tizen"/>
    <tizen:privilege name="http://tizen.org/privilege/socket"/>
    <tizen:privilege name="http://tizen.org/privilege/download"/>
    <tizen:setting background-support="disable" encryption="disable" hwkey-event="enable"/>
</widget>

Please advise! Thanks!

- Dan

Responses

2 Replies
AVSukhov

Hello,

Are you using Wearable SDK?

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.

Alex Dem

Hi,
In additional, just fyi: interaction should be performed via Samsung Accessory Protocol, here is about :
http://developer.samsung.com/develop#accessory
Alexey.