g123k / flutter_plugin_device_apps

Flutter plugin to get the list of installed applications (iOS is not supported yet).
https://pub.dev/packages/device_apps
Apache License 2.0
106 stars 89 forks source link

Plugin doesn't work on Android 12 #94

Closed Djihanegh closed 1 year ago

Djihanegh commented 2 years ago

Plugin doesn't work on android 12, but it works on android 10

Flutter version : 3.0.5 Dart 2.17.6 device_apps: ^2.2.0

Is there any solution for that ? Thank you in advance.

kayumarie commented 1 year ago

I'm getting an error

Error: Couldn't resolve the package 'device_apps' in 'package:device_apps/device_apps.dart'.

@Djihanegh are you getting the same one?

Djihanegh commented 1 year ago

No, i was having a problem with Android 12, to check if some applications are installed or not, and i fixed it by adding <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" /> in AndroidManifest.xml.. image

check more details here : https://pub.dev/packages/device_apps

I'm getting an error

Error: Couldn't resolve the package 'device_apps' in 'package:device_apps/device_apps.dart'.

@Djihanegh are you getting the same one?