Viewing version 1.1.0. Open the latest package page.
appcheck
1.1.0Flutter plugin that allows you to check if an app is installed/enabled, launch an app and get the list of installed apps.
Readme
Flutter AppCheck Plugin
A Flutter plugin that allows you to check if an app is installed/enabled, launch an app and get the list of installed apps.
This plugin is inspired by the plugin Discontinued AppAvailability Plugin.
NOTE - Everything has been mostly rewritten in Kotlin and updated to latest null-safety standards.
Installation
First, add appcheck as a dependency in your pubspec.yaml file.
Methods available
checkAvailability(String uri)isAppInstalled(String uri)getInstalledApps()(only for Android)isAppEnabled(String uri)(only for Android)launchApp(String uri)
Permissions
If you want to use the getInstalledApps() function, you need the QUERY_ALL_PACKAGES permission.
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
If you only want to check certain apps and you know the packageName, add them via queries in AndroidManifest.xml.
<queries>
<package android:name="com.google.android.apps.maps"/>
</queries>
Check out Example.
Screenshots
Changelog
1.0.0
- Rewritten in Kotlin and with Null-Safety.
1.0.3
- Fixed system app logic for Android
- Fixed opening URLs on earlier iOS versions
1.0.4
- Fixed some lint warnings
- Updated Dart SDK min version to 2.17
1.0.5
- Remove QUERY_ALL_PACKAGES permission due to playstore policies (check README for more info)
1.0.6
- Lowered dart sdk constraint to >=2.12.0 from 2.17.0
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'appcheck:1.1.0'pubspec.yaml
name: appcheck
description: Flutter plugin that allows you to check if an app is installed/enabled, launch an app and get the list of installed apps.
version: 1.1.0
homepage: https://github.com/Yash-Garg/appcheck
environment:
sdk: ">=2.12.0 <4.0.0"
flutter: ">=3.0.0"
dependencies:
flutter:
sdk: flutter
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^3.0.2
flutter:
plugin:
platforms:
android:
package: dev.yashgarg.appcheck
pluginClass: AppcheckPlugin
ios:
pluginClass: AppcheckPlugin
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 1.0.0 | Cached · Upstream SHA-256 matched | Download | 65c93155…b43f56 |
| 1.0.1 | Cached · Upstream SHA-256 matched | Download | 60a6bbaa…4d8c8c |
| 1.0.2 | Cached · Upstream SHA-256 matched | Download | 2aadcea0…791cf1 |
| 1.0.3 | Cached · Upstream SHA-256 matched | Download | e1a83a01…76f3b8 |
| 1.0.4 | Cached · Upstream SHA-256 matched | Download | dc8b398c…41fa8d |
| 1.0.5 | Cached · Upstream SHA-256 matched | Download | f4e0527f…992630 |
| 1.0.6 | Cached · Upstream SHA-256 matched | Download | a9e5852e…63678f |
| 1.1.0 | Cached · Upstream SHA-256 matched | Download | 2682c9c2…386520 |
| 1.2.0 | Cached · Upstream SHA-256 matched | Download | 1d87f7f6…4beae7 |
| 1.3.0 | Cached · Upstream SHA-256 matched | Download | bdcd9af5…9eb16d |
| 1.5.0 | Cached · Upstream SHA-256 matched | Download | 6a80ae2e…3f378e |
| 1.5.1 | Cached · Upstream SHA-256 matched | Download | 0214f271…f50bde |
| 1.5.2 | Cached · Upstream SHA-256 matched | Download | 0fcbe15b…4a1909 |
| 1.5.3 | Cached · Upstream SHA-256 matched | Download | 531ae963…8df09e |
| 1.5.4 | Cached · Upstream SHA-256 matched | Download | 9f0a9fc9…a1d5ba |
| 1.5.4+1 | Cached · Upstream SHA-256 matched | Download | 6971b1ae…3c2f17 |
| 1.6.0 | Cached · Upstream SHA-256 matched | Download | aa5877ae…d2e7c0 |
| 1.7.0 | Cached · Upstream SHA-256 matched | Download | 63abf1ba…beca1d |
| 1.8.0 | Cached · Upstream SHA-256 matched | Download | e23f3034…7017ae |
| 1.8.1 | Cached · Upstream SHA-256 matched | Download | 79b13730…a5f854 |
Dependencies
flutter {
"sdk": "flutter"
}