1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-08-03 07:47:01 +00:00

WebOS 22 and 6.0 collection of fixes

This commit is contained in:
Michael Hollister 2024-12-17 22:59:41 -06:00
parent 902ccff8bc
commit d57e1368b1
13 changed files with 228 additions and 36 deletions

View file

@ -37,10 +37,16 @@ export class Main {
const serviceId = 'com.futo.fcast.receiver.service';
const service = new Service(serviceId);
// Not compatible with WebOS 22 and earlier simulator?
// Service will timeout and casting will disconnect if not forced to be kept alive
let keepAlive;
service.activityManager.create("keepAlive", function(activity) {
keepAlive = activity;
// let keepAlive;
// service.activityManager.create("keepAlive", function(activity) {
// keepAlive = activity;
// });
service.register("keepAlive", (_message: any) => {
Main.logger.info("In keepAlive callback");
// Do not respond to keep service alive
});
service.register("getDeviceInfo", (message: any) => {