# appcheck 1.0.5

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.5'
```
Published: 2022-06-24T12:33:21.931218Z
Expected archive SHA-256: f4e0527f1aaf338ee9b2d2eb7abefba3991816c420a01817e5cb1c4e49992630

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.

 ```
<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 querie in AndroidManifest.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)







 
