# Simulator cannot call luna service

**URL:** <https://forum.webostv.developer.lge.com/t/simulator-cannot-call-luna-service/11711>\
**Category:** Web App Development\
**Created:** [November 28, 2024, 10:25am UTC](https://forum.webostv.developer.lge.com/t/simulator-cannot-call-luna-service/11711 "2024-11-28T10:25:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![user220](https://avatars.discourse-cdn.com/v4/letter/u/b9e5f3/32.png) [@user220](https://forum.webostv.developer.lge.com/u/user220)\
**Post date:** [November 28, 2024, 10:25am UTC](https://forum.webostv.developer.lge.com/t/simulator-cannot-call-luna-service/11711/1 "2024-11-28T10:25:13Z")

</div>

Hi  
when I use `webOS.service.request` in my simluator webos\_tv\_24, I got this error. I am not sure what is wrong. But it works in the real TV. Can someone help me on this? Thanks so much.

```auto
webOS.service.request("luna://com.webos.service.applicationmanager", {
				method: "launch",
				parameters: params,
				onSuccess: function (response) {
						console.log("App launched successfully:", response);
				},
				onFailure: function (error) {
						console.error("Failed to launch app:", error);
				}
		});

```

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/webostv/original/1X/c45f9c3c42a5ba30d7d9c24ff9b4d27fd6a3fd08.png)

---

<div class="post-metadata">

**Author:** ![narae0.kim](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@narae0.kim](https://forum.webostv.developer.lge.com/u/narae0.kim)\
**Post date:** [November 28, 2024, 11:55pm UTC](https://forum.webostv.developer.lge.com/t/simulator-cannot-call-luna-service/11711/2 "2024-11-28T23:55:38Z")

</div>

We do not guarantee the compatibility of webOS TV apps with webOS OSE resources. For webOS TV apps, please use webOS TV resources in this website only. Thank you.

---

<div class="post-metadata">

**Author:** ![user220](https://avatars.discourse-cdn.com/v4/letter/u/b9e5f3/32.png) [@user220](https://forum.webostv.developer.lge.com/u/user220)\
**Post date:** [December 3, 2024, 3:18am UTC](https://forum.webostv.developer.lge.com/t/simulator-cannot-call-luna-service/11711/3 "2024-12-03T03:18:19Z")

</div>

Thank you for replying this question.  
I checked the webos TV Api. I encounter another problem.  
I would like to launch another App. i.e. In App1 launch App2.  
But seems I cannot get the params I was passing from App1.  
The event.detail (events: webOSLaunch and webOSRelaunch) is undefined  
webOSDev.launchParams() get a empty Object  
This is the code

```auto
// in app1
function openApp2() {
		webOSDev.launch({
			id: "com.aaa.app",
			params: {
				contentTarget: "content_id=100030038",
			},
			onSuccess: function () {
					console.log("App launched successfully");
			},
			onFailure: function (err) {
					console.error("Failed to launch app", err);
			}
	});
// in app2
document.addEventListener(
		"webOSLaunch",
		function (inData) {
			console.log('webOSLaunch====', inData)
		},
		true
	);
	document.addEventListener(
		"webOSRelaunch",
		function (inData) {
			console.log('webOSRelaunch====', inData)
			console.log('webOSDev.launchParams====', webOSDev.launchParams())
		},
		true
	);

```

@narae0.kim Could you help me on this? Thanks

---

<div class="post-metadata">

**Author:** ![narae0.kim](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@narae0.kim](https://forum.webostv.developer.lge.com/u/narae0.kim)\
**Post date:** [December 4, 2024, 4:35am UTC](https://forum.webostv.developer.lge.com/t/simulator-cannot-call-luna-service/11711/4 "2024-12-04T04:35:51Z")

</div>

Please check again with [webOSTV.JS Library sample app](https://github.com/webOS-TV-app-samples/webOSTVJSLibrary)(com.sample.launchparams). Thank you.
