Yash-Garg / 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.

Home Page:https://pub.dev/packages/appcheck

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flutter AppCheck Plugin

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.

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

About

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

https://pub.dev/packages/appcheck

License:MIT License


Languages

Language:Dart 43.0%Language:Kotlin 27.5%Language:Ruby 13.5%Language:Swift 11.8%Language:Objective-C 4.3%