https://github.com/yash-garg/appcheck
A Flutter plugin that allows you to check if an app is installed/enabled, launch an app and get the list of installed apps.
https://github.com/yash-garg/appcheck
android dart flutter flutter-package ios kotlin method-channel swift
Last synced: 6 months ago
JSON representation
A Flutter plugin that allows you to check if an app is installed/enabled, launch an app and get the list of installed apps.
- Host: GitHub
- URL: https://github.com/yash-garg/appcheck
- Owner: Yash-Garg
- License: mit
- Created: 2022-03-17T14:46:30.000Z (about 3 years ago)
- Default Branch: develop
- Last Pushed: 2024-11-01T09:47:37.000Z (7 months ago)
- Last Synced: 2024-11-01T10:26:52.799Z (7 months ago)
- Topics: android, dart, flutter, flutter-package, ios, kotlin, method-channel, swift
- Language: Dart
- Homepage: https://pub.dev/packages/appcheck
- Size: 494 KB
- Stars: 10
- Watchers: 2
- Forks: 20
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# AppCheck
[](https://pub.dartlang.org/packages/appcheck)
A Flutter plugin that allows you to check if an app is installed/enabled, launch an app and get the list of installed apps.
## Installation
First, add `appcheck` as a [dependency in your pubspec.yaml file](https://flutter.io/using-packages/).
## Methods available
- `checkAvailability(String uri)`
- `isAppInstalled(String uri)`
- `getInstalledApps()` (only for **Android**)
- `isAppEnabled(String uri)` (only for **Android**)
- `launchApp(String uri)`## Permissions
Before using the plugin, you need to add declarations in your configuration files.
### Android
If you want to use the `getInstalledApps()` function, you need the `QUERY_ALL_PACKAGES` permission.
```xml
```
If you only want to check certain apps and you know the packageName, add them via queries in AndroidManifest.xml.
```xml
```
### iOS
Make sure your `Info.plist` file includes the necessary URL schemes under `LSApplicationQueriesSchemes` to check and launch other apps:
```xml
LSApplicationQueriesSchemesscheme1
scheme2
```
Example:
```xml
LSApplicationQueriesSchemesfb
youtube
comgooglemaps
http
https
mailto
```
Check out [Example](https://github.com/Yash-Garg/appcheck/blob/develop/example/lib/main.dart).
## Screenshots
![]()
![]()