Cordova plugin capture-plugin-media not working with android version 8 and 8.1 above

After browsing it seems like it is problem with permission related problem. However I could not get proper solution working around with this plugin. Although it is working fine for android version below 7.

let options: CaptureImageOptions = { limit: 3 };
this.mediaCapture.captureImage(options)
.then(
(data: MediaFile) => console.log(data),
(err: CaptureError) => console.error(err)
);
}

In many cases it is written fixed. However in my case it is not working. The plugin suddenly crashes the app.

Ionic:

ionic (Ionic CLI) : 4.0.1 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0

Cordova:

cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 6.4.0, ios 4.5.5

System:

Android SDK Tools : 24.3.4
ios-deploy : 1.9.4
ios-sim : 5.0.8
NodeJS : v10.14.2 (/usr/local/bin/node)
npm : 6.4.1
OS : macOS
Xcode : Xcode 9.3.1 Build version 9E501

1 Like

Could you find any solution for this?

I am using media capture plugin in my ionic project. The plug in is working fine in local android build apk as well as emulator. But when I commit the code and build the same ionic cloud(web) build, the build is successful but the plug in doesn’t work and is giving error plugin_not_installed. I suspect the issue could be with compatibility of media-capture plugin with Cordova CLI 9. Is there any work around for this? I have already spend too much in analysing and finding solution for this. Raised a request in IONIC community forum also. But didnt get any response till now. Expecting a response from some expert here.Thanks in advance