device_app_checker 0.1.1
device_app_checker: ^0.1.1 copied to clipboard
A Flutter plugin for checking and launching Android apps by package name.
device_app_checker #
Device Apps Plus #
An Android-only Flutter plugin that checks whether package names are visible and installed, and can open an app's launcher activity.
import 'package:device_app_checker/device_apps_plus.dart';
Usage #
final apps = DeviceAppsPlus();
final installed = await apps.isAppInstalled('com.android.chrome');
final results = await apps.checkMultiple(['com.android.chrome', 'com.example.missing']);
final opened = await apps.openApp('com.android.chrome');
Android 11 (API 30) and later limits package visibility. Add every package your app needs to query to the host app manifest:
<queries>
<package android:name="com.android.chrome" />
</queries>
Support #
Android API 21 and later. Other platforms have no native implementation.