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:
parent
902ccff8bc
commit
d57e1368b1
13 changed files with 228 additions and 36 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue