p-hatan/ mirror

pub repository

mirror.p-hatan.ir

appcheck

1.8.0

Flutter plugin that allows you to check if an app is installed/enabled, launch an app and get the list of installed apps.

Download archive

Readme

AppCheck

Pub

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.8.0

Breaking Changes

  • Minimum Flutter version is now 3.44.0.
  • Minimum Dart SDK version is now 3.12.0.
  • Minimum iOS deployment target bumped from 9.0 to 12.0.

Maintenance

  • Migrated Android plugin to Flutter's built-in Kotlin (AGP 9 / KGP 2.0+). Removed explicit kotlin-android plugin, kotlin-stdlib dependency, and kotlinOptions block; replaced with the kotlin { compilerOptions {} } DSL.
  • Updated iOS podspec version to match pubspec and bumped Swift version to 5.9.

1.7.0

Performance

  • Fixed UI blocking: getInstalledApps() no longer freezes the UI. Method channel handlers now run on a background thread using Flutter's makeBackgroundTaskQueue().

New Features

  • Added includeIcon parameter to getInstalledApps() - set to false for significantly faster performance when icons aren't needed.
  • Added includeSystemApps parameter to getInstalledApps() - set to false to only retrieve user-installed apps.

Bug Fixes

  • Fixed versionCode type mismatch that could cause issues on Android API 28+.

Breaking Changes

  • Minimum Dart SDK version is now 3.0.0
  • Minimum Flutter version is now 3.10.0

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 example app.

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 appcheck
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.8.0
homepage: https://github.com/Yash-Garg/appcheck

environment:
  sdk: ^3.12.0
  flutter: ">=3.44.0"

dependencies:
  flutter:
    sdk: flutter

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_lints: ^5.0.0

flutter:
  plugin:
    platforms:
      android:
        package: dev.yashgarg.appcheck
        pluginClass: AppcheckPlugin
      ios:
        pluginClass: AppcheckPlugin

Version history

VersionPublishedArchiveSHA-256
1.0.02022-03-17T17:29:59.992204ZDownload65c931557e1572e780b4f5f6bf1f2a5a03899a94e033fc4d2831aff99cb43f56
1.0.12022-03-19T09:24:37.677882ZDownload60a6bbaa8b825d678ca945391dc4482972e5185ea8b90abc3b8a45edf24d8c8c
1.0.22022-03-19T09:51:07.539747ZDownload2aadcea0f67e92e550040b581414455aaae3a7318ecb3ff4f4dfa84bad791cf1
1.0.32022-03-20T13:29:33.047905ZDownloade1a83a01aa22c36d3415bb1ad202b7d7abc2a48dd1d7fad4b99687f9f276f3b8
1.0.42022-06-06T14:18:05.635155ZDownloaddc8b398c037809b342bc6f3a418feaaa8908e324bc40e744c15b45f55941fa8d
1.0.52022-06-24T12:33:21.931218ZDownloadf4e0527f1aaf338ee9b2d2eb7abefba3991816c420a01817e5cb1c4e49992630
1.0.62022-10-05T14:24:47.376433ZDownloada9e5852e8c9d14342cfa3569fc464a1d49a49eac41e3d006f5825ce54663678f
1.1.02024-04-05T08:52:51.131307ZDownload2682c9c270c28d83f8d87d68bb607a83882778b14c6a8da19df423be1b386520
1.2.02024-07-18T20:30:34.744299ZDownload1d87f7f672744fe9b9e9bf013c00fe851a2f11049c8ea41bc3a1dbf1b74beae7
1.3.02024-07-18T20:48:00.681439ZDownloadbdcd9af5da38d822bdaca67136a20880f81b123ca715b1f528790eeee19eb16d
1.5.02024-07-18T20:54:37.250405ZDownload6a80ae2e18a0eb6b0ce9e48176d6a6a28bb6b797387d85f555e4b1e3043f378e
1.5.12024-07-18T20:55:17.202449ZDownload0214f27148610690a14c0d85b414274a740955a8c352a4c719ba01d9b0f50bde
1.5.22024-07-26T16:22:49.847721ZDownload0fcbe15b6bba67027c6f94bd177b9b319e019b51e0b49e9cd80486448c4a1909
1.5.32025-01-29T10:32:20.176998ZDownload531ae96307c7362ceeeb92ab6ec229cca937ce1bda63f2a7d0319f91958df09e
1.5.42025-03-06T18:22:10.719457ZDownload9f0a9fc98b508eda4a75a53fe96d7be96c3cffac1421915b5b8f4ca23ba1d5ba
1.5.4+12025-03-06T18:31:11.508208ZDownload6971b1ae5833b15b1abc29f7d03d08db79577b2934ceb34fe39ab937b53c2f17
1.6.02025-11-28T08:32:36.662444ZDownloadaa5877ae559f266a677af538cd343cc463cc592c79f8afce8b6b213894d2e7c0
1.7.02026-01-16T09:16:48.963138ZDownload63abf1ba508a86cd5f7bf134d202d008562ac9bbdbc713c92c28bf3f45beca1d
1.8.02026-06-17T17:16:28.295628ZDownloade23f3034f70c347e7287f50462e7eb5517322cb998331e51d387717bcd7017ae
1.8.12026-08-27T17:26:26.881518ZDownload79b1373029cf8115486e2526047972a6da6abbe63774c97b76673ae4eba5f854

Dependencies

flutter { "sdk": "flutter" }