[Service] Provide webapis.isRunningApp() API 55/282855/4
authorDongHyun Song <dh81.song@samsung.com>
Wed, 12 Oct 2022 08:58:44 +0000 (17:58 +0900)
committerDongHyun Song <dh81.song@samsung.com>
Thu, 20 Oct 2022 04:06:46 +0000 (13:06 +0900)
commit278a28f735d4ded4c3abb1428f9ffd84746ce361
tree37af4aa955999338135a032690482e5cbb00d6cd
parent808bcf8f8b5f2ec7f4dd49345647e9f0641de1c1
[Service] Provide webapis.isRunningApp() API

Conventionally, to know an app if it is alive with webapis, it should
get all alive packages info and check if the subject app ID is included
on them. This is very inefficient way.

So, WRT did provide below API recently.
 - wrt.isRunningApp(appId: string): bool

This patch will webapis.isRunningApp(appId: strig) also for the service
apps.

Change-Id: If20751d6b47913ebb9836463b307d5aa97f76e65
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
wrt_app/service/device_api_router.ts