Applist icon indicating copy to clipboard operation
Applist copied to clipboard

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

Open thakorhitesh opened this issue 4 years ago • 2 comments

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 ([email protected]) 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

thakorhitesh avatar Jul 14 '20 03:07 thakorhitesh

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.

neyenaponte avatar Oct 25 '22 11:10 neyenaponte

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

lithiumhax avatar Dec 01 '22 01:12 lithiumhax