- I am developing a webOS TV app in react.js called appA.
- I have a partner TV app called appB which hosts the contents of appA.
- When the user clicks my content in appB, it launches my appA along with the details of the content clicked.
- In my appA, I have used "document.addEventListener('webOSLaunch')" listener in index.html's in the body section to listen to this event like shown below:
document.addEventListener("webOSLaunch", function (inData) {
console.log("WebOSLaunch event triggered.");
if(inData.detail){
//rest of the code to call API with the data received
}
})
- This works fine in WebOS TV 5 and above.
- In WebOS TV 4.x the eventListener is not triggered at all. There is no errors thrown in the console. What could be the reason?
I tried logging, setting breakpoints, but does not work.