# appcheck 1.0.6

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




## Installing
```
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'appcheck:1.0.6'
```
Published: 2022-10-05T14:24:47.376433Z
Expected archive SHA-256: a9e5852e8c9d14342cfa3569fc464a1d49a49eac41e3d006f5825ce54663678f

Available in cache; verification: upstream_checksum
## Direct dependencies
- flutter: map[sdk:flutter]

## Package README (untrusted upstream documentation)
# Flutter AppCheck Plugin

[![Pub](https://img.shields.io/pub/v/appcheck.svg)](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.

This plugin is inspired by the plugin [Discontinued AppAvailability Plugin](https://pub.dev/packages/flutter_appavailability).

#### 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](https://flutter.io/using-packages/).

## Methods available

- `checkAvailability(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.

 ```xml
<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.

 ```xml
<queries>
    <package android:name="com.google.android.apps.maps"/>
</queries>
 ```



Check out [Example](https://github.com/Yash-Garg/appcheck/blob/develop/example/lib/main.dart).

## Screenshots

<p align="center">
  <img width="48.2%" src="https://raw.githubusercontent.com/Yash-Garg/AppCheck/develop/images/screen-android.png">
  <img width="47%" src="https://raw.githubusercontent.com/Yash-Garg/AppCheck/develop/images/screen-ios.png">
</p>

## 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







 
