pub repository
mirror.p-hatan.irappcheck
1.6.0Flutter plugin that allows you to check if an app is installed/enabled, launch an app and get the list of installed apps.
Readme
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.
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.
<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>
iOS
Make sure your Info.plist file includes the necessary URL schemes under LSApplicationQueriesSchemes to check and launch other apps:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>scheme1</string>
<string>scheme2</string>
<!-- Add more schemes as needed -->
</array>
Example:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fb</string>
<string>twitter</string>
<string>instagram</string>
<string>whatsapp</string>
<string>youtube</string>
<string>comgooglemaps</string>
<string>http</string>
<string>https</string>
<string>mailto</string>
<!-- Add more schemes as needed -->
</array>
Check out Example.
Screenshots
Changelog
1.6.0
- Updated Android dependencies
- Increased Android minSdk version to 24
1.5.4
- Support for Swift Package Manager on iOS.
- Misc. updates to
exampleapp.
1.5.3
- Added null check for
appInfo.
1.5.2
- You need to now make an instance of the class to use the methods, instead of using static methods. Checkout the example in the README for more info.
1.3.0 - 1.5.0
- Minor code cleanup and dependency updates.
- Fixes for iOS app launches and README instructions.
1.0.6
- Lowered dart sdk constraint to >=2.12.0 from 2.17.0
1.0.5
- Remove QUERY_ALL_PACKAGES permission due to playstore policies (check README for more info)
1.0.4
- Fixed some lint warnings
- Updated Dart SDK min version to 2.17
1.0.3
- Fixed system app logic for Android
- Fixed opening URLs on earlier iOS versions
1.0.0 - 1.0.2
- Rewritten in Kotlin and with Null-Safety.
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add appcheckpubspec.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.6.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: ^6.0.0
flutter:
plugin:
platforms:
android:
package: dev.yashgarg.appcheck
pluginClass: AppcheckPlugin
ios:
pluginClass: AppcheckPlugin
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 1.0.0 | 2022-03-17T17:29:59.992204Z | Download | 65c931557e1572e780b4f5f6bf1f2a5a03899a94e033fc4d2831aff99cb43f56 |
| 1.0.1 | 2022-03-19T09:24:37.677882Z | Download | 60a6bbaa8b825d678ca945391dc4482972e5185ea8b90abc3b8a45edf24d8c8c |
| 1.0.2 | 2022-03-19T09:51:07.539747Z | Download | 2aadcea0f67e92e550040b581414455aaae3a7318ecb3ff4f4dfa84bad791cf1 |
| 1.0.3 | 2022-03-20T13:29:33.047905Z | Download | e1a83a01aa22c36d3415bb1ad202b7d7abc2a48dd1d7fad4b99687f9f276f3b8 |
| 1.0.4 | 2022-06-06T14:18:05.635155Z | Download | dc8b398c037809b342bc6f3a418feaaa8908e324bc40e744c15b45f55941fa8d |
| 1.0.5 | 2022-06-24T12:33:21.931218Z | Download | f4e0527f1aaf338ee9b2d2eb7abefba3991816c420a01817e5cb1c4e49992630 |
| 1.0.6 | 2022-10-05T14:24:47.376433Z | Download | a9e5852e8c9d14342cfa3569fc464a1d49a49eac41e3d006f5825ce54663678f |
| 1.1.0 | 2024-04-05T08:52:51.131307Z | Download | 2682c9c270c28d83f8d87d68bb607a83882778b14c6a8da19df423be1b386520 |
| 1.2.0 | 2024-07-18T20:30:34.744299Z | Download | 1d87f7f672744fe9b9e9bf013c00fe851a2f11049c8ea41bc3a1dbf1b74beae7 |
| 1.3.0 | 2024-07-18T20:48:00.681439Z | Download | bdcd9af5da38d822bdaca67136a20880f81b123ca715b1f528790eeee19eb16d |
| 1.5.0 | 2024-07-18T20:54:37.250405Z | Download | 6a80ae2e18a0eb6b0ce9e48176d6a6a28bb6b797387d85f555e4b1e3043f378e |
| 1.5.1 | 2024-07-18T20:55:17.202449Z | Download | 0214f27148610690a14c0d85b414274a740955a8c352a4c719ba01d9b0f50bde |
| 1.5.2 | 2024-07-26T16:22:49.847721Z | Download | 0fcbe15b6bba67027c6f94bd177b9b319e019b51e0b49e9cd80486448c4a1909 |
| 1.5.3 | 2025-01-29T10:32:20.176998Z | Download | 531ae96307c7362ceeeb92ab6ec229cca937ce1bda63f2a7d0319f91958df09e |
| 1.5.4 | 2025-03-06T18:22:10.719457Z | Download | 9f0a9fc98b508eda4a75a53fe96d7be96c3cffac1421915b5b8f4ca23ba1d5ba |
| 1.5.4+1 | 2025-03-06T18:31:11.508208Z | Download | 6971b1ae5833b15b1abc29f7d03d08db79577b2934ceb34fe39ab937b53c2f17 |
| 1.6.0 | 2025-11-28T08:32:36.662444Z | Download | aa5877ae559f266a677af538cd343cc463cc592c79f8afce8b6b213894d2e7c0 |
| 1.7.0 | 2026-01-16T09:16:48.963138Z | Download | 63abf1ba508a86cd5f7bf134d202d008562ac9bbdbc713c92c28bf3f45beca1d |
| 1.8.0 | 2026-06-17T17:16:28.295628Z | Download | e23f3034f70c347e7287f50462e7eb5517322cb998331e51d387717bcd7017ae |
| 1.8.1 | 2026-08-27T17:26:26.881518Z | Download | 79b1373029cf8115486e2526047972a6da6abbe63774c97b76673ae4eba5f854 |
Dependencies
flutter {
"sdk": "flutter"
}