I currently have a Tizen Application for managing TV Operations such as Volume Controls and Power On/Off. I have implemented the use of b2bapis for Power Off functionalities, but I am struggling to locate comprehensive documentation on the same. The code snippet below demonstrates how I successfully turn off my Samsung Tizen TV:
b2bapis.b2bcontrol.setPowerOff(() => {
console.log('Success');
}, (err)=> {
console.log('err: ', err)
});
However, I face issues while trying to turn the TV back on using this method:
b2bapis.b2bpower.setPowerOn(()=> {
console.log('Success');
}, (err)=> {
console.log('err: ', err)
})
Upon attempting to power on the TV, I encounter an error message stating "You do not have the privilege":
https://i.sstatic.net/ob6a3BA4.png
The error message does not specify the missing privilege. Here is the list of privileges that my application has:
<tizen:privilege name="http://tizen.org/feature/display.state"/>
<tizen:privilege name="http://developer.samsung.com/privilege/b2bpower"/>
[...]
config.xml:
<?xml version="1.0" encoding="UTF-8"?>
[...]
</widget>
Environment:
- TV: Samsung Tizen TV (OS version: 6.0) (Model Number: HG43AU800EUXEN).
- WebSocket Server: Utilizing a Java Package to transmit commands to my Tizen Application.
- Tizen Application: Listens to commands sent from the Java Package.
Is there an error in my implementation, or is there an alternative solution?