jmrezayi2 / Applist

Applist: A plugin for Cordova that gives the list of installed apps on device
Other
19 stars 12 forks source link

Getting error While retrieving list of apps on android device and android emulator #12

Open thakorhitesh opened 3 years ago

thakorhitesh commented 3 years ago

I am getting below error :

android.graphics.drawable.AdaptiveIconDrawable cannot be cast to android.graphics.drawable.BitmapDrawable

My Code :

platform.ready().then( function () { if (platform.is('android') && !platform.is('mobileweb')) {
var success = function(app_list) { alert(JSON.stringify(app_list)); }; var error = function(app_list) { alert("Oopsie! " + app_list); }; Applist.createEvent('', '', '', '', '', success, error) } } );

Ionic Project Details :

Ionic:

Ionic CLI : 6.10.1 (...\Roaming\npm\node_modules\@ionic\cli) Ionic Framework : @ionic/angular 5.2.3 @angular-devkit/build-angular : 0.901.11 @angular-devkit/schematics : 9.1.11 @angular/cli : 9.1.11 @ionic/angular-toolkit : 2.2.0

Capacitor:

Capacitor CLI : 2.2.1 @capacitor/core : 2.2.1

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1) Cordova Platforms: android 8.1.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 4 other plugins)

Utility:

cordova-res : not installed native-run : 1.0.0

neyenaponte commented 1 year ago

Did you find any solution to this problem? The same thing is happening to me, in xaomi I can use it, but not in other models.

lithiumhax commented 1 year ago

Having the same problem, also can't get any of the forks to work. Is anyone still working on this?