This topic describes Web application configuration, especially for privileges and features specific to Samsung devices. Many privileges and features available for mobile and wearable Web applications are also available for TV Web applications
Configuring Applications
Security and API Privileges
Setting Project Properties
All Tizen Web application projects must have a "config.xml" file in the project root directory. The configuration file is composed of XML elements, including the <widget> element as its root. The configuration information is used when you install or run the Tizen Web application.
<widget>
The "config.xml" file contains the following information:
<tizen:application id='{Package}.{Project Name}' ... />
<widget … version='{0-255}.{0-255}.{0-65535}' ... />
<icon src='Icon Path' />
<content src='HTML Path' />
<tizen privilege name='http://tizen.org/privilege/Privilege Name' /> <tizen privilege name='http://developer.samsung.com/privilege/Privilege Name' />
metadata
<tizen:setting pointing-device-support='disable' />
In the Tizen Studio, you can edit the configuration file in 2 ways:
For more information, see Setting Project Properties and Configuring Applications.
To use security-sensitive APIs, you must declare the required privileges and sign your application with a certificate for the appropriate privilege level. You can add privileges to the "config.xml" file using the "Privileges" tab of the Configuration Editor in the Tizen Studio.
Figure 1. Adding privileges
The following table lists the privileged Tizen APIs specific to TVs.
For more information on Tizen API privileges, see Security and API Privileges.
The following table lists the privileged Samsung Product APIs specific to signage devices.
setDrm()
Some features are implemented by adding key-value pairs to the metadata element. You can add meta data in the "Tizen" tab of the Configuration Editor in the Tizen Studio.
Figure 2. Adding meta data
The following table lists the meta data keys available for TVs.