this.funcRequestedAppcontrol = this.currentApplication.getRequestedAppControl;
this.currentApplication.getRequestedAppControl = () => {
console.log(`Routing - getRequestedAppControl() : ${this.getServiceId()}`);
- if (wrt.tv)
- wrt.tv.setCurrentApplication(this.getServiceId());
return this.funcRequestedAppcontrol();
}
return this.currentApplication;
}
export function start(id: string, filename: string) {
+ wrt.setServiceAppId(id);
XWalkExtension.initialize();
XWalkExtension.setRuntimeMessageHandler((type, data) => {
if (type === 'tizen://exit') {
console.log(`start global service file: ${filename}`);
}
- printAppControlData(id);
-
try {
let ids = id.split(':');
let serviceId = ids[0];
let packageId = global.webapis.getPackageId();
wrt.security?.dropThreadPrivilege(packageId, serviceId);
+ printAppControlData(id);
app = require(filename);
if (app.onStart !== undefined) {