device_apps_plus 1.0.2

SDKflutter
Platformandroid

A Flutter plugin to check if specific Android apps are installed on the device. Useful for deep links, onboarding, or app linking.

📱 Device Apps Plus

A Flutter plugin to check whether specific Android apps are installed on the user's device.

  • ✅ Supports Android SDK 21 and above
  • ❌ Not supported on iOS (UnsupportedError will be thrown)

Example Screenshot


🔧 Features

  • isAppInstalled(String packageName) – Check if a specific app is installed
  • checkMultiple(List<String> packageNames) – Efficiently check multiple apps at once
  • openApp(String packageName) – Launch an installed app from your Flutter code (added in 1.0.2)

🚀 Getting Started

1. Add Dependency

In your app's pubspec.yaml:

dependencies:
  device_apps_plus: ^1.0.2

2. Use the Plugin

import 'package:device_apps_plus/device_apps_plus.dart';

final checker = DeviceAppsPlus();

// Single app
bool installed = await checker.isAppInstalled("irando.co.id.holy_bible");

// Multiple apps
final results = await checker.checkMultiple([
    "irando.co.id.holy_bible",
    "com.facebook.katana",
    "com.instagram.android",
    "com.nonexistent.app",
]);

results.forEach((pkg, isInstalled) {
  debugPrint('$pkg: ${isInstalled ? "Installed" : "Not Installed"}');
});

// Open an installed app (returns false if not found)
bool opened = await checker.openApp("irando.co.id.holy_bible");

⚠️ Android Manifest Setup

To support app queries on Android 11+ (API 30+), add the following to your AndroidManifest.xml:

<manifest ...>
  <queries>
    <package android:name="irando.co.id.holy_bible" />
    <package android:name="com.facebook.katana" />
    <package android:name="com.instagram.android" />
    <!-- Add any other packages your app checks for -->
  </queries>
</manifest>

📖 This is required due to Android package visibility restrictions introduced in API 30.


📦 Platform Support

PlatformSupport
Android✅ SDK 21–36
iOS❌ Not supported

🧪 Example Output

Platform: Android 15

✅ isAppInstalled('irando.co.id.holy_bible') = true

📦 checkMultiple:
irando.co.id.holy_bible: ✔️
com.facebook.katana: ❌
com.instagram.android: ✔️
com.nonexistent.app: ❌

📄 License

MIT


🔗 Resources