Need Help, how to send URL in "com.webos.app.browser"

Hi
I wonder how to send the URL to the browser?
I manage to display the Browser on my LG webOS with a function:

msg.payload = "com.webos.app.browser";
return msg;

I send this to the app node in node-red-contrib-lgtv.

What I need is: How do I send the URL? I tried adding a function with:

msg.topic = "www.blabla.com";
return msg;

and

msg.params = "http://www.blabla.com";
return msg;

and

msg.target = "http://www.blabla.com";
return msg;

and

msg.params.target.= "http://www.blabla.com";
return msg;

The last threw an error:

"TypeError: Cannot set properties of undefined (setting 'target')"

I found something like:

webOSDev.launch({
  id: webOSDev.APP.BROWSER,
  params: {
    target: 'http://www.your-web-page.com', // target should be
  },
  onSuccess(res) {
    // do something
  },
  onFailure(res) {
    // handle error
  },
});

but I don't understand how to do something like this.
Thank you for giving me a hint.

Why not use the lgtv-browser node. Looking at the source code you simply set the URL in msg.payload

Yes, this was the correct hint. Thank you. I forgot the https://

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.