JavaScript Service dose not exist


var pkgInfo = require('./package.json');
var Service = require('webos-service');
var greeting = "Hello, World!";

var service = new Service('fit-webos-app.helloworld');
service.register('hello', function (message) {
    greeting: 'Hello, World!',

I want to use a JavaScript Service in a WebOS TV application using Enactjs. I initialized the service and the results came out like the image above. How to call correctly? And explain to me whether the application on TV supports running in the background with the operating system? Any relevant answers. Thank!
The code I call the service:

new LS2Request().send({
	service: "fit-webos-app.helloworld",
	onSuccess: function (inResponse) {
		console.log("Successfully helloworld ======>", inResponse);
	onFailure: function (inError) {
		console.log("Failed to helloworld ======>", inError);
1 Like

Luna Service does not allow minus signs (-) in a JS service name. Therefore, if you are to add JS services into your app, please do not include minus signs (-) in your app ID. For more information, please refer to JS Service Usage. Thank you.