Question
I created a watch face using the Basic Watch template from Tizen IDE. The watch face has standard HTML/JS structure with main.js and time.js files. However, when installed, it appears in the applications list rather than the clock/watch face selection menu.
Here's my basic watch face structure:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content="Digital Watch Application"/>
<title>Digital Watch</title>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
</head>
<body id="colour">
<div id="fon">
<!-- Watch face content -->
</div>
</body>
<script src="js/main.js"></script>
<script src="js/time.js"></script>
</html>
The issue can be seen in this video (starting at 23 seconds): [Video Link]
Answer
Problem Understanding
The watch face is appearing in the wrong category because the Tizen platform isn't recognizing it as a clock application. This typically happens when the proper category declaration is missing or incorrect in the config.xml file.
Solution Methods
-
Standard Tizen Category Declaration: Add the following line to your config.xml:
<tizen:category name="http://tizen.org/category/wearable_clock"/> -
Samsung-Specific Category Declaration (for Tizen 2.2.1): If the standard declaration doesn't work (particularly for Tizen 2.2.1), use this Samsung-specific category:
<tizen:category name="com.samsung.wmanager.WATCH_CLOCK"/>
Code Examples
Here's a complete config.xml example:
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/Name" version="1.0.0" viewmodes="maximized">
<tizen:application id="O2VvjaaX8E.Name" package="O2VvjaaX8E" required_version="2.2.1"/>
<author email="email@gmail.com">Me</author>
<tizen:category name="com.samsung.wmanager.WATCH_CLOCK"/>
<content src="index.html"/>
<description>Animated watch-face for smart-watch</description>
<feature name="http://tizen.org/feature/screen.size.all"/>
<icon src="icon.png"/>
<name>Name</name>
<tizen:privilege name="http://tizen.org/privilege/alarm"/>
<tizen:privilege name="http://tizen.org/privilege/power"/>
<tizen:profile name="wearable"/>
<tizen:setting background-support="disable" encryption="disable" hwkey-event="enable"/>
</widget>
Additional Tips
- Always clean and rebuild your project after modifying config.xml
- For Tizen 3.0 and later, the standard category declaration should work
- If issues persist, verify your Tizen version and use the appropriate category declaration
- Ensure your watch face meets all other requirements for clock applications