npm.io
0.0.1 • Published 23h ago

@capuchoo/apps-manager

Licence
MIT
Version
0.0.1
Deps
0
Size
28 kB
Vulns
0
Weekly
0

@capuchoo/apps-manager

capacitor plugin to list and get info abotu the installed app in ur device

Install

npm install @capuchoo/apps-manager
npx cap sync

API

echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
Param Type
options { value: string; }

Returns: Promise<{ value: string; }>


getAppInfo(...)
getAppInfo(options: { bundleId: string; }) => Promise<AppInfo>

Get information about an app by its bundle identifier.

Param Type
options { bundleId: string; }

Returns: Promise<AppInfo>


openApp(...)
openApp(options: { bundleId: string; }) => Promise<{ completed: boolean; }>

Attempt to open an app by its bundle identifier.

Param Type
options { bundleId: string; }

Returns: Promise<{ completed: boolean; }>


getInstalledApps()
getInstalledApps() => Promise<{ apps: AppInfo[]; }>

Get a list of all installed apps on the device. Note: Requires QUERY_ALL_PACKAGES on Android.

Returns: Promise<{ apps: AppInfo[]; }>


Interfaces
AppInfo
Prop Type
bundleId string
isInstalled boolean
versionName string
versionCode number

Keywords