@capuchoo/apps-manager
v0.0.1
Published
Capacitor plugin that lists and inspects apps installed on the device
Readme
@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 syncAPI
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 |
