I created a Web Widget that I want to push to my watch. The Tizen Documenation says a widget cannot be deployed standalone. So, I am trying to bundle my Widget with a Web Application. I have successfully pushed the Web Application to my watch, but I can't get the widget to go with it. I tried following the steps here: https://developer.tizen.org/development/getting-started/web-application/application-development-process#multi
My Web Widget is called JohnDoeWidget. The Web Application I bundled it with is called BuddyUI (It's the sample app). In the Tizen IDE, in the Project Explorer, it says "JohnDoeWidget [With BuddyUI] wearable-2.3.2". So I think I did that part correctly. When I push BuddyUI to my phone, there is no widget with it, though.
In the BuddyUI config.xml, in the Tizen (or advanced) menu, the Web Widget section has nothing in it. Surely this is the problem! However, I cannot figure out how to add the JohnDoeWidget to this. I tried manually editing the config.xml file, but then when it builds, it says "JohnDoeWidget exists with a different web widget project.". The BuddyUI config.xml looks like this
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="(removing link)" xmlns:tizen="(removing link)" id="(removing link)" version="1.0.0" viewmodes="maximized">
<tizen:application id="yUnJzQvDKJ.BuddyUI" package="yUnJzQvDKJ" required_version="2.3"/>
<content src="index.html"/>
<feature name="(removing link)/feature/screen.size.normal"/>
<icon src="icon.png"/>
<name>BuddyUI</name>
<tizen:privilege name=(removing link)/privilege/application.launch"/>
<tizen:profile name="wearable"/>
<tizen:setting hwkey-event="enable"/>
</widget>
What I tried to do was change it to this, with no luck.
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="(removing link)" xmlns:tizen="(removing link)" id="(removing link)" version="1.0.0" viewmodes="maximized">
<tizen:application id="yUnJzQvDKJ.BuddyUI" package="yUnJzQvDKJ" required_version="2.3"/>
<content src="index.html"/>
<feature name="(removing link)/feature/screen.size.normal"/>
<icon src="icon.png"/>
<name>BuddyUI</name>
<tizen:privilege name="(removing link)/privilege/application.launch"/>
<tizen:profile name="wearable"/>
<tizen:setting hwkey-event="enable"/>
<tizen:app-widget id="Fttrlmw6YQ.JohnDoeWidget.JohnDoeWidget" primary="true">
<tizen:widget-label>Hello Web Widget!</tizen:widget-label>
<tizen:widget-content src="index.html">
<tizen:widget-size preview="preview.png">2x2</tizen:widget-size>
</tizen:widget-content>
</tizen:app-widget>
</widget>
I also tried changing the app-widget id to yUnJzQvDKJ.BuddyUI.JohnDoeWidget
but that gives the error "JohnDoeWidget exists with a different web widget project.".
How do I add a widget to an existing web application?
-- Edit: I also tried the following:
- I created a new Web Application
- Bundled a new web widget with it
- Pushed it to my watch. The app showed up on my watch, but the widget did not.