Skip to content

Commit

Permalink
Auto launch was not working anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Cathwyler committed Mar 28, 2024
1 parent 9c6af8f commit 0e593ae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
13 changes: 9 additions & 4 deletions MagicRemoteService/Resources/TV/Service/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,14 @@ metWol.on("request", function(mMessage) {
if(bOverlay){
var strInputAppId = "com.webos.app.hdmi";

var aKeepAlive;
serService.activityManager.create("aKeepAlive", function(a) {
aKeepAlive = a;
});

var dClose = {};
var metclose = serService.register("close");
metclose.on("request", function(mMessage) {
var metClose = serService.register("close");
metClose.on("request", function(mMessage) {
try {
if (mMessage.isSubscription) {
dClose[mMessage.uniqueToken] = mMessage;
Expand All @@ -129,7 +134,7 @@ if(bOverlay){
});
}
});
metclose.on("cancel", function(mMessage) {
metClose.on("cancel", function(mMessage) {
delete dClose[mMessage.uniqueToken];
});

Expand All @@ -138,7 +143,7 @@ if(bOverlay){
name: "MagicRemoteService auto launch",
description: "MagicRemoteService auto launch",
type: {
background: true,
foreground: true,
persist: true
}, schedule: {
precise: true,
Expand Down
11 changes: 1 addition & 10 deletions MagicRemoteService/Resources/TV/Service/services.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,7 @@
"id": "com.cathwyler.magicremoteservice.service",
"services": [
{
"name": "com.cathwyler.magicremoteservice.service",
"commands": [
{
"name": "wol",
"public": true
}, {
"name": "close",
"public": true
}
]
"name": "com.cathwyler.magicremoteservice.service"
}
]
}

0 comments on commit 0e593ae

Please sign in to comment.