I have managed to launch the television browser showing a page from my website. Now that the reader is there, I want to make a link available that can be clicked to bring the user back to my app.

I have created this javascript that is triggered when the button is clicked.

Code:
function openApp() {
  webOS.service.request("luna://com.webos.applicationManager", {
    method:"launch",
    parameters: { "id": "com.example.myApp" },
  onComplete: function (inResponse) {
    var isSucceeded = inResponse.returnValue;
    if (isSucceeded){
      console.log("The app is launched");
    } else {
      document.write("failure " + JSON.stringify(inResponse) );
      return;
    }  
  }
 });
}
when I click the link, the document.write prints this:

Code:
{ "errorCode":-1, "errorText":"PalmServiceBridge is not found.", "returnValue":false}
I am testing this ON DEVICE, a LG UHD TV.

why? how do I solve that?