I am trying to implement the Samsung personal preview for my app by following the steps given in https://developer.samsung.com/smarttv/develop/guides/smart-hub-preview/implementing-personal-preview.html
When I try to deploy the build, I am getting a parsing error. If I remove the code that is marked in bold in my config.xml, the build is deployed successfully.
I have no idea how the Service ID [<tizen:service id=‘1hXok8raY1.service’ auto-restart=“false”>] should be mentioned. I have directly used my application ID [1hXok8raY1] followed by “service” as mentioned in the documentation. Kindly assist.
I would appreciate it if anybody could attach the steps to implement the personal preview if you have already done it.
This is my config.xml file:
<widget xmlns:tizen="http://tizen.org/ns/widgets" xmlns="http://www.w3.org/ns/widgets" id="http://yourdomain/xyz" version="1.0.0" viewmodes="maximized">
<tizen:metadata key='http://samsung.com/tv/metadata/use.preview' value='endpoint_URL=https://my_server_path/sample.json'></tizen:metadata>
<tizen:application id="1hXok8raY1.XYZ" package="1hXok8raY1" required_version="3.0"/>
<content src="index.html"/>
<feature name="http://tizen.org/feature/screen.size.normal.1080.1920"/>
<icon src="icon.png"/>
<name>XYZ</name>
<tizen:privilege name='http://tizen.org/privilege/tv.inputdevice'/>
<tizen:profile name="tv-samsung"/>
<tizen:setting screen-orientation="landscape" context-menu="enable" background-support="disable" encryption="disable" install-location="auto" hwkey-event="enable"/>
<tizen:privilege name="http://tizen.org/privilege/internet"/>
<access origin="*" subdomains="true"></access>
<tizen:privilege name='http://tizen.org/privilege/tv.inputdevice'></tizen:privilege>
<tizen:feature name="http://tizen.org/feature/web.service"/>
**<tizen:service id='1hXok8raY1.service' auto-restart="false">**
** <tizen:content src='service/service.js'></tizen:content>**
** <tizen:name>service</tizen:name>**
** <tizen:icon src='service/service_icon.png'></tizen:icon>**
** <tizen:description>Service Application</tizen:description>**
** <tizen:metadata key='meta-key' value='meta-value'></tizen:metadata>**
** <tizen:category name='http://tizen.org/category/service'></tizen:category>**
** </tizen:service>**
<tizen:app-control>
<tizen:src name='index.html' reload='disable'></tizen:src>
<tizen:operation name='http://samsung.com/appcontrol/operation/eden_resume'></tizen:operation>
</tizen:app-control>
</widget>