Languages

Menu
Sites
Language
WidgetService sendContent / getContent

​Hi, I try to use the WidgetService as described here: https://developer.tizen.org/ko/development/guides/web-application/application-management/application-information-and-controls/widget-information?langredirect=1

I've copied the example 1:1 and I've also set the required permissions but getContent always returns an empty object. There is no exception or something so I don't know if the sendContent or the getContent has a problem. Can anyone help me please? Is this a bug?

 

 

 

 

 

Responses

2 Replies
Armaan-Ul- Islam

Hello,

I would suggest you to check the Sample application provided in Tizen Studio.

New > Sample > Wearable 2.3.2 > Web application > Application > WidgetServiceSample

You may check the sendContent() code example for better understanding.

 

I guess you already added widget.viewer privilege in your config.xml file.

<tizen:privilege name="http://tizen.org/privilege/widget.viewer"/>                                  
<tizen:privilege name="http://tizen.org/privilege/application.info"/>                                      <tizen:privilege name="http://tizen.org/privilege/application.launch"/>